ata663211
2.0.0.0
|
Functions | |
void | ata663211_cfg_setup (ata663211_cfg_t *cfg) |
Config Object Initialization function. More... | |
ATA663211_RETVAL | ata663211_init (ata663211_t *ctx, ata663211_cfg_t *cfg) |
Initialization function. More... | |
void | ata663211_generic_multi_write (ata663211_t *ctx, char *data_buf, uint8_t len) |
Generic multi write function. More... | |
void | ata663211_generic_multi_read (ata663211_t *ctx, char *data_buf, uint8_t len) |
Generic multi read function. More... | |
char | ata663211_generic_single_read (ata663211_t *ctx) |
Generic single read function. More... | |
void | ata663211_generic_single_write (ata663211_t *ctx, char tx_data) |
Generic single write function. More... | |
void | ata663211_wake_up_device (ata663211_t *ctx) |
Wake-up device function. More... | |
void | ata663211_sleep_mode (ata663211_t *ctx) |
Sleep mode function. More... | |
uint8_t | ata663211_check_inh (ata663211_t *ctx) |
Check inhibit pin state function. More... | |
void ata663211_cfg_setup | ( | ata663211_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
uint8_t ata663211_check_inh | ( | ata663211_t * | ctx | ) |
Check inhibit pin state function.
ctx | Click object. |
This function is used to check the state of inhibit pin.
void ata663211_generic_multi_read | ( | ata663211_t * | ctx, |
char * | data_buf, | ||
uint8_t | len | ||
) |
Generic multi read function.
ctx | Click object. |
data_buf | Output data buffer. |
len | Number of the bytes in data buffer. |
This function reads data.
void ata663211_generic_multi_write | ( | ata663211_t * | ctx, |
char * | data_buf, | ||
uint8_t | len | ||
) |
Generic multi write function.
ctx | Click object. |
data_buf | Input data buffer |
len | Number of the bytes in the data buffer |
This function writes data.
char ata663211_generic_single_read | ( | ata663211_t * | ctx | ) |
Generic single read function.
ctx | Click object. |
This function read one byte data.
void ata663211_generic_single_write | ( | ata663211_t * | ctx, |
char | tx_data | ||
) |
Generic single write function.
ctx | Click object. |
tx_data | Input data |
This function write one byte data.
ATA663211_RETVAL ata663211_init | ( | ata663211_t * | ctx, |
ata663211_cfg_t * | cfg | ||
) |
Initialization function.
ata663211 | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void ata663211_sleep_mode | ( | ata663211_t * | ctx | ) |
Sleep mode function.
ctx | Click object. |
This function engages the sleep mode.
void ata663211_wake_up_device | ( | ata663211_t * | ctx | ) |
Wake-up device function.
ctx | Click object. |
This function engages the normal mode.