capextend 2.0.0.0
|
Functions | |
void | capextend_cfg_setup (capextend_cfg_t *cfg) |
Config Object Initialization function. | |
CAPEXTEND_RETVAL | capextend_init (capextend_t *ctx, capextend_cfg_t *cfg) |
Initialization function. | |
void | capextend_generic_write (capextend_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | capextend_generic_read (capextend_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
int8_t | capextend_read_msb_buttons (capextend_t *ctx) |
Read MSB buttons function. | |
int8_t | capextend_read_lsb_buttons (capextend_t *ctx) |
Read LSB buttons function. | |
uint16_t | capextend_read_buttons (capextend_t *ctx) |
Read buttons function. | |
void | capextend_reset (capextend_t *ctx) |
Reset function. | |
void | capextend_set_rst_high (capextend_t *ctx) |
Set reset high function. | |
void | capextend_set_rst_low (capextend_t *ctx) |
Set reset low function. | |
uint8_t | capextend_get_int_input (capextend_t *ctx) |
Get interrupt input function. | |
void capextend_cfg_setup | ( | capextend_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void capextend_generic_read | ( | capextend_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void capextend_generic_write | ( | capextend_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
uint8_t capextend_get_int_input | ( | capextend_t * | ctx | ) |
Get interrupt input function.
ctx | Click object. |
@description This function reads the input voltage on the interrupt pin.
CAPEXTEND_RETVAL capextend_init | ( | capextend_t * | ctx, |
capextend_cfg_t * | cfg ) |
Initialization function.
capextend | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint16_t capextend_read_buttons | ( | capextend_t * | ctx | ) |
Read buttons function.
ctx | Click object. |
Returns | 12bit data of buttons state. |
@description This function reads the button map data.
int8_t capextend_read_lsb_buttons | ( | capextend_t * | ctx | ) |
Read LSB buttons function.
ctx | Click object. |
@description This function reads the LSB button map data.
int8_t capextend_read_msb_buttons | ( | capextend_t * | ctx | ) |
Read MSB buttons function.
ctx | Click object. |
@description This function reads the MSB button map data.
void capextend_reset | ( | capextend_t * | ctx | ) |
Reset function.
ctx | Click object. |
@description This function does a software reset of the click module.
void capextend_set_rst_high | ( | capextend_t * | ctx | ) |
Set reset high function.
ctx | Click object. |
@description This function sets the output voltage on the reset pin to high.
void capextend_set_rst_low | ( | capextend_t * | ctx | ) |
Set reset low function.
ctx | Click object. |
@description This function sets the output voltage on the reset pin to low.