ata663211 2.0.0.0
|
Functions | |
void | ata663211_cfg_setup (ata663211_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | ata663211_init (ata663211_t *ctx, ata663211_cfg_t *cfg) |
Initialization function. | |
err_t | ata663211_generic_write (ata663211_t *ctx, uint8_t *data_buf, uint16_t len) |
Generic write function. | |
err_t | ata663211_generic_read (ata663211_t *ctx, uint8_t *data_buf, uint16_t len) |
Generic read function. | |
void | ata663211_wake_up_device (ata663211_t *ctx) |
Wake-up device function. | |
void | ata663211_sleep_mode (ata663211_t *ctx) |
Sleep mode function. | |
uint8_t | ata663211_check_inh (ata663211_t *ctx) |
Check inhibit pin state function. | |
void ata663211_cfg_setup | ( | ata663211_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description 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. |
@description This function is used to check the state of inhibit pin.
err_t ata663211_generic_read | ( | ata663211_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | len ) |
Generic read function.
ctx | Click object. |
data_buf | Output data buffer. |
len | Number of the bytes in data buffer. |
>0
- Number of data bytes read, <=0
- Error/Empty Ring buffer. See #err_t definition for detailed explanation. @description This function reads data. err_t ata663211_generic_write | ( | ata663211_t * | ctx, |
uint8_t * | data_buf, | ||
uint16_t | len ) |
Generic write function.
ctx | Click object. |
data_buf | Input data buffer |
len | Number of the bytes in the data buffer |
>=0
- Success, <0
- Error. See #err_t definition for detailed explanation. @description This function writes data. err_t ata663211_init | ( | ata663211_t * | ctx, |
ata663211_cfg_t * | cfg ) |
Initialization function.
ata663211 | Click object. |
cfg | Click configuration structure. |
@description 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. |
@description This function engages the sleep mode.
void ata663211_wake_up_device | ( | ata663211_t * | ctx | ) |
Wake-up device function.
ctx | Click object. |
@description This function engages the normal mode.