boostinv2 2.0.0.0
|
Functions | |
void | boostinv2_cfg_setup (boostinv2_cfg_t *cfg) |
Config Object Initialization function. | |
BOOSTONV2_RETVAL | boostinv2_init (boostinv2_t *ctx, boostinv2_cfg_t *cfg) |
Initialization function. | |
void | boostinv2_default_cfg (boostinv2_t *ctx) |
Click Default Configuration function. | |
void | boostinv2_generic_transfer (boostinv2_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | boostinv2_enable (boostinv2_t *ctx) |
Enable analog pin. | |
void | boostinv2_set_positive_voltage (boostinv2_t *ctx, uint16_t voltage) |
Sets postive voltage. | |
void | boostinv2_set_negative_voltage (boostinv2_t *ctx, uint16_t voltage) |
Sets negative voltage. | |
void | boostinv2_set_psn (boostinv2_t *ctx, uint8_t state) |
Sets PSN depending on input state. | |
void boostinv2_cfg_setup | ( | boostinv2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void boostinv2_default_cfg | ( | boostinv2_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Boost-inv 2 click.
void boostinv2_enable | ( | boostinv2_t * | ctx | ) |
Enable analog pin.
ctx | Click object. |
@description Enables analog pin for 200ms.
void boostinv2_generic_transfer | ( | boostinv2_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
BOOSTONV2_RETVAL boostinv2_init | ( | boostinv2_t * | ctx, |
boostinv2_cfg_t * | cfg ) |
Initialization function.
boostinv2 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void boostinv2_set_negative_voltage | ( | boostinv2_t * | ctx, |
uint16_t | voltage ) |
Sets negative voltage.
ctx | Click object. |
volatage | uint16_t. |
@description Sets negative voltage via SPI communication..
void boostinv2_set_positive_voltage | ( | boostinv2_t * | ctx, |
uint16_t | voltage ) |
Sets postive voltage.
ctx | Click object. |
volatage | uint16_t |
@description Sets positive voltage via SPI communication..
void boostinv2_set_psn | ( | boostinv2_t * | ctx, |
uint8_t | state ) |
Sets PSN depending on input state.
ctx | Click object. |
state | uint8_t. |
@description Sets psn pin on high or low depending on input.