ecggsr 2.0.0.0
|
Functions | |
void | ecggsr_cfg_setup (ecggsr_cfg_t *cfg) |
ECG GSR configuration object setup function. | |
err_t | ecggsr_init (ecggsr_t *ctx, ecggsr_cfg_t *cfg) |
Initialization function. | |
void | ecggsr_default_cfg (ecggsr_t *ctx, ecggsr_cfg_t *cfg) |
Click Default Configuration function. | |
err_t | ecggsr_write_reg (ecggsr_t *ctx, uint8_t register_address, uint8_t transfer_data) |
Generic Write function. | |
err_t | ecggsr_read_reg (ecggsr_t *ctx, uint8_t register_address, uint8_t *data_out, uint8_t num_of_regs) |
Generic Read function. | |
void | ecggsr_read_dev_id (ecggsr_t *ctx, uint8_t *dev_id_out) |
ECG GSR Read ID function. | |
void | ecggsr_reset (ecggsr_t *ctx) |
ECG GSR Reset function. | |
void ecggsr_cfg_setup | ( | ecggsr_cfg_t * | cfg | ) |
ECG GSR configuration object setup function.
This function initializes click configuration structure to initial values.
[in] | *cfg | Click configuration structure. |
void ecggsr_default_cfg | ( | ecggsr_t * | ctx, |
ecggsr_cfg_t * | cfg ) |
Click Default Configuration function.
This function executes default configuration for ECG GSR Click.
[in] | *ctx | Click object. |
[in] | *cfg | Click configuration structure. |
err_t ecggsr_init | ( | ecggsr_t * | ctx, |
ecggsr_cfg_t * | cfg ) |
Initialization function.
This function initializes all necessary pins and peripherals used for this click.
[in] | *ctx | Click object. |
[in] | *cfg | Click configuration structure. |
void ecggsr_read_dev_id | ( | ecggsr_t * | ctx, |
uint8_t * | dev_id_out ) |
ECG GSR Read ID function.
Function performs reading of an ID of the device.
[in] | *ctx | Click object. |
[out] | *dev_id_out | Buffer for storing identification number that has been read. |
err_t ecggsr_read_reg | ( | ecggsr_t * | ctx, |
uint8_t | register_address, | ||
uint8_t * | data_out, | ||
uint8_t | num_of_regs ) |
Generic Read function.
Function reads 8-bit data from the register/registers.
[in] | *cfg | Click configuration. |
[in] | register_address | Register which will be read. |
[out] | *data_out | Buffer for storing data that has been read. |
[in] | num_of_regs | Number of registers to be read. |
void ecggsr_reset | ( | ecggsr_t * | ctx | ) |
ECG GSR Reset function.
Function performs the SW reset of the device and waits until the device returns back to normal state.
[in] | *ctx | Click object. |
err_t ecggsr_write_reg | ( | ecggsr_t * | ctx, |
uint8_t | register_address, | ||
uint8_t | transfer_data ) |
Generic Write function.
Function writes 8-bit data to the register.
[in] | *ctx | Click object. |
[in] | register_address | Register which will be written to. |
[in] | transfer_data | Data to be written. |