c3xbuck 2.0.0.0
|
Functions | |
void | c3xbuck_cfg_setup (c3xbuck_cfg_t *cfg) |
Config Object Initialization function. | |
C3XBUCK_RETVAL | c3xbuck_init (c3xbuck_t *ctx, c3xbuck_cfg_t *cfg) |
Initialization function. | |
void | c3xbuck_default_cfg (c3xbuck_t *ctx) |
Click Default Configuration function. | |
void | c3xbuck_write_byte (c3xbuck_t *ctx, uint8_t reg, uint8_t data_value) |
Write byte function. | |
uint8_t | c3xbuck_read_byte (c3xbuck_t *ctx, uint8_t reg) |
Generic read function. | |
void | c3xbuck_enable_buck (c3xbuck_t *ctx, uint8_t buck) |
Enable Buck function. | |
void | c3xbuck_disable_buck (c3xbuck_t *ctx, uint8_t buck) |
Disable Buck function. | |
void | c3xbuck_set_voltage (c3xbuck_t *ctx, uint8_t buck, uint8_t voltage) |
Set voltage function. | |
uint8_t | c3xbuck_get_status (c3xbuck_t *ctx) |
Get status function. | |
void | c3xbuck_configuration_buck (c3xbuck_t *ctx, uint8_t buck, uint8_t config) |
Configuration function. | |
void c3xbuck_cfg_setup | ( | c3xbuck_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void c3xbuck_configuration_buck | ( | c3xbuck_t * | ctx, |
uint8_t | buck, | ||
uint8_t | config ) |
Configuration function.
ctx | Click object. |
buck | Buck 1 - 3. |
@description This function executes default configuration for 3xBuck click.
void c3xbuck_default_cfg | ( | c3xbuck_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for 3xBuck click.
void c3xbuck_disable_buck | ( | c3xbuck_t * | ctx, |
uint8_t | buck ) |
Disable Buck function.
ctx | Click object. |
@description This function disables 3xBuck click.
void c3xbuck_enable_buck | ( | c3xbuck_t * | ctx, |
uint8_t | buck ) |
Enable Buck function.
ctx | Click object. |
@description This function enables desired Buck on the click.
uint8_t c3xbuck_get_status | ( | c3xbuck_t * | ctx | ) |
Get status function.
ctx | Click object. |
@description This function returns status register.
C3XBUCK_RETVAL c3xbuck_init | ( | c3xbuck_t * | ctx, |
c3xbuck_cfg_t * | cfg ) |
Initialization function.
c3xbuck | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t c3xbuck_read_byte | ( | c3xbuck_t * | ctx, |
uint8_t | reg ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
void c3xbuck_set_voltage | ( | c3xbuck_t * | ctx, |
uint8_t | buck, | ||
uint8_t | voltage ) |
Set voltage function.
ctx | Click object. |
buck | Buck 1 - 3 |
voltage | Voltage value |
@description This function sets voltage on desired Buck.
void c3xbuck_write_byte | ( | c3xbuck_t * | ctx, |
uint8_t | reg, | ||
uint8_t | data_value ) |
Write byte function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function writes data from the desired register.