ecg4 2.0.0.0
|
Functions | |
void | ecg4_cfg_setup (ecg4_cfg_t *cfg) |
Config Object Initialization function. | |
ECG4_RETVAL | ecg4_init (ecg4_t *ctx, ecg4_cfg_t *cfg) |
Initialization function. | |
void | ecg4_module_reset (ecg4_t *ctx) |
Reset module. | |
void | ecg4_generic_write (ecg4_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | ecg4_generic_read (ecg4_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | ecg4_enable_ldo_ctrl (ecg4_t *ctx, uint8_t state) |
LDO Control function. | |
void | ecg4_uart_isr (ecg4_t *ctx, uint8_t rx_dat) |
Uart Interrupt Routine function. | |
uint8_t | ecg4_responseReady (ecg4_t *ctx) |
Response ready check function. | |
void ecg4_cfg_setup | ( | ecg4_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void ecg4_enable_ldo_ctrl | ( | ecg4_t * | ctx, |
uint8_t | state ) |
LDO Control function.
ctx | Click object. |
state | 0 - Disable LDO control 1 - Enable LDO control3 |
@description Function powers up or down control of LDO (Low Drop Out).
int32_t ecg4_generic_read | ( | ecg4_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
ctx | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void ecg4_generic_write | ( | ecg4_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
ctx | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
ECG4_RETVAL ecg4_init | ( | ecg4_t * | ctx, |
ecg4_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void ecg4_module_reset | ( | ecg4_t * | ctx | ) |
Reset module.
ctx | Click object. |
uint8_t ecg4_responseReady | ( | ecg4_t * | ctx | ) |
Response ready check function.
ctx | Click object. |
@description Function checks if a response is ready.
void ecg4_uart_isr | ( | ecg4_t * | ctx, |
uint8_t | rx_dat ) |
Uart Interrupt Routine function.
ctx | Click object. |
@description Function performs the uart interrupt routine, reads a data from uart rx buffer and makes a response from the BMD101 device.