bargraph3 2.0.0.0
|
Functions | |
void | bargraph3_cfg_setup (bargraph3_cfg_t *cfg) |
Config Object Initialization function. | |
BARGRAPH3_RETVAL | bargraph3_init (bargraph3_t *ctx, bargraph3_cfg_t *cfg) |
Initialization function. | |
void | bargraph3_default_cfg (bargraph3_t *ctx) |
Click Default Configuration function. | |
void | bargraph3_generic_transfer (bargraph3_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | bargraph3_enable (bargraph3_t *ctx, uint8_t state) |
Functions for enable the chip. | |
void | bargraph3_reset (bargraph3_t *ctx) |
Functions for reset the chip. | |
void | bargraph3_set_pwm (bargraph3_t *ctx, uint8_t state) |
Functions for set PWM. | |
void | bargraph3_display (bargraph3_t *ctx, uint8_t ctrl, uint8_t dir, uint8_t counter) |
Displays function. | |
void bargraph3_cfg_setup | ( | bargraph3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void bargraph3_default_cfg | ( | bargraph3_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for BARGRAPH 3 click.
void bargraph3_display | ( | bargraph3_t * | ctx, |
uint8_t | ctrl, | ||
uint8_t | dir, | ||
uint8_t | counter ) |
Displays function.
ctx | Click object. |
ctrl | Led control ( INCREASE_LED or CONTROL_ONE_LED ). |
dir | Display direction ( TOP_TO_BOTTOM or BOTTOM_TO_TOP ). |
counter | BarGraph display counter ( 0..5 ). |
@description This function control the displey.
void bargraph3_enable | ( | bargraph3_t * | ctx, |
uint8_t | state ) |
Functions for enable the chip.
ctx | Click object. |
state | State. |
@description This function enable the chip.
void bargraph3_generic_transfer | ( | bargraph3_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
BARGRAPH3_RETVAL bargraph3_init | ( | bargraph3_t * | ctx, |
bargraph3_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 bargraph3_reset | ( | bargraph3_t * | ctx | ) |
Functions for reset the chip.
ctx | Click object. |
@description This function reset the chip.
void bargraph3_set_pwm | ( | bargraph3_t * | ctx, |
uint8_t | state ) |
Functions for set PWM.
ctx | Click object. |
state | State. |
@description This function set PWM.