![]() |
SyterKit 0.4.0.x
SyterKit is a bare-metal framework
|
#include <io.h>#include <stdarg.h>#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <types.h>#include <common.h>#include <log.h>#include <pmu/axp.h>
Functions | |
| static axp_contrl_info * | get_ctrl_info_from_tbl (char *name, axp_contrl_info *axp_ctrl_tbl, uint8_t axp_ctrl_tbl_size) |
| Get control information from the table based on the given name. | |
| int | axp_set_vol (sunxi_i2c_t *i2c_dev, char *name, int set_vol, int onoff, axp_contrl_info *axp_ctrl_tbl, uint8_t axp_ctrl_tbl_size, uint8_t axp_addr) |
| Set the voltage for a specific power domain controlled by AXP. | |
| int | axp_get_vol (sunxi_i2c_t *i2c_dev, char *name, axp_contrl_info *axp_ctrl_tbl, uint8_t axp_ctrl_tbl_size, uint8_t axp_addr) |
| Get the voltage value for a specific power domain controlled by AXP. | |
| int axp_get_vol | ( | sunxi_i2c_t * | i2c_dev, |
| char * | name, | ||
| axp_contrl_info * | axp_ctrl_tbl, | ||
| uint8_t | axp_ctrl_tbl_size, | ||
| uint8_t | axp_addr | ||
| ) |
Get the voltage value for a specific power domain controlled by AXP.
| i2c_dev | Pointer to the I2C device structure. |
| name | Name of the power domain. |
| axp_ctrl_tbl | Pointer to the AXP control information table. |
| axp_ctrl_tbl_size | Size of the AXP control information table. |
| axp_addr | AXP device address. |
| int axp_set_vol | ( | sunxi_i2c_t * | i2c_dev, |
| char * | name, | ||
| int | set_vol, | ||
| int | onoff, | ||
| axp_contrl_info * | axp_ctrl_tbl, | ||
| uint8_t | axp_ctrl_tbl_size, | ||
| uint8_t | axp_addr | ||
| ) |
Set the voltage for a specific power domain controlled by AXP.
| i2c_dev | Pointer to the I2C device structure. |
| name | Name of the power domain. |
| set_vol | Voltage value to set. |
| onoff | Whether to turn on or off the power domain (1 for on, 0 for off). |
| axp_ctrl_tbl | Pointer to the AXP control information table. |
| axp_ctrl_tbl_size | Size of the AXP control information table. |
| axp_addr | AXP device address. |
|
static |
Get control information from the table based on the given name.
| name | The name of the control information to retrieve. |