gsr 2.0.0.0
|
Functions | |
void | gsr_cfg_setup (gsr_cfg_t *cfg) |
Config Object Initialization function. | |
GSR_RETVAL | gsr_init (gsr_t *ctx, gsr_cfg_t *cfg) |
Initialization function. | |
void | gsr_generic_transfer (gsr_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
uint16_t | gsr_read_value (gsr_t *ctx) |
Read Analog Value. | |
void gsr_cfg_setup | ( | gsr_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void gsr_generic_transfer | ( | gsr_t * | ctx, |
uint8_t * | wr_buf, | ||
uint16_t | wr_len, | ||
uint8_t * | rd_buf, | ||
uint16_t | rd_len ) |
Generic transfer function.
ctx | Click object. |
block | Transfer block structure. |
@description Generic SPI transfer, for sending and receiving packages
GSR_RETVAL gsr_init | ( | gsr_t * | ctx, |
gsr_cfg_t * | cfg ) |
Initialization function.
gsr | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint16_t gsr_read_value | ( | gsr_t * | ctx | ) |
Read Analog Value.
ctx | Click object. |
@description This function read measurement using MCP3201 ADC integrated on click board.