ata663254 2.0.0.0
|
Functions | |
void | ata663254_cfg_setup (ata663254_cfg_t *cfg) |
Config Object Initialization function. | |
ATA663254_RETVAL | ata663254_init (ata663254_t *ctx, ata663254_cfg_t *cfg) |
Initialization function. | |
void | ata663254_generic_write (ata663254_t *ctx, char *data_buf, uint16_t len) |
Generic multi write function. | |
int32_t | ata663254_generic_read (ata663254_t *ctx, char *data_buf, uint16_t len) |
Generic multi read function. | |
void | ata663254_enable (ata663254_t *ctx, uint8_t state) |
Chip enable function. | |
uint8_t | ata663254_get_rst_state (ata663254_t *ctx) |
Undervoltage detect function. | |
void ata663254_cfg_setup | ( | ata663254_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void ata663254_enable | ( | ata663254_t * | ctx, |
uint8_t | state ) |
Chip enable function.
ctx | Click object. |
state | 0 - disable, 1 - enable |
@description This function enables or disables chip via Chip Select pin.
int32_t ata663254_generic_read | ( | ata663254_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic multi read function.
ctx | Click object. |
data_buf | Output data buffer. |
len | Number of the bytes in data buffer. |
@description This function reads data.
void ata663254_generic_write | ( | ata663254_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic multi write function.
ctx | Click object. |
data_buf | Input data buffer |
len | Number of the bytes in the data buffer |
@description This function writes data.
uint8_t ata663254_get_rst_state | ( | ata663254_t * | ctx | ) |
Undervoltage detect function.
ctx | Click object. |
@description This function returns 0 if undervoltage have detected, reset pin switched to 0.
ATA663254_RETVAL ata663254_init | ( | ata663254_t * | ctx, |
ata663254_cfg_t * | cfg ) |
Initialization function.
ata663254 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.