digivref 2.0.0.0
|
Functions | |
void | digivref_cfg_setup (digivref_cfg_t *cfg) |
Config Object Initialization function. | |
DIGIVREF_RETVAL | digivref_init (digivref_t *ctx, digivref_cfg_t *cfg) |
Initialization function. | |
void | digivref_generic_transfer (digivref_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | digivref_set_output_voltage (digivref_t *ctx, uint8_t v_ref) |
Function for set reference output voltage. | |
void digivref_cfg_setup | ( | digivref_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void digivref_generic_transfer | ( | digivref_t * | ctx, |
uint8_t * | wr_buf, | ||
uint16_t | wr_len, | ||
uint8_t * | rd_buf, | ||
uint16_t | rd_len ) |
Generic transfer function.
ctx | Click object. |
wr_buf | Write data buffer |
wr_len | Number of byte in write data buffer |
rd_buf | Read data buffer |
rd_len | Number of byte in read data buffer |
@description Generic SPI transfer, for sending and receiving packages
DIGIVREF_RETVAL digivref_init | ( | digivref_t * | ctx, |
digivref_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 digivref_set_output_voltage | ( | digivref_t * | ctx, |
uint8_t | v_ref ) |
Function for set reference output voltage.
ctx | Click object. |
v_ref | Reference output voltage( 4096mV - 3070mV - 2047mV - 1030mV ). |
@description This function sets reference output voltage.