big7seg 2.0.0.0
|
Functions | |
void | big7seg_cfg_setup (big7seg_cfg_t *cfg) |
Config Object Initialization function. | |
BIG7SEG_RETVAL | big7seg_init (big7seg_t *ctx, big7seg_cfg_t *cfg) |
Initialization function. | |
void | big7seg_generic_transfer (big7seg_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | big7seg_write_data (big7seg_t *ctx, uint8_t write_data) |
void | big7seg_set7seg (big7seg_t *ctx) |
void | big7seg_reset7seg (big7seg_t *ctx) |
void | big7seg_display_on (big7seg_t *ctx) |
void | big7seg_display_off (big7seg_t *ctx) |
void | big7seg_write_data_number (big7seg_t *ctx, uint8_t display_number) |
void | big7seg_write_data_character (big7seg_t *ctx, char display_char) |
void big7seg_cfg_setup | ( | big7seg_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void big7seg_display_off | ( | big7seg_t * | ctx | ) |
@breif Turn OFF BIG 7-SEG display
ctx | Click object. |
@description Function disable BIG 7-SEG display
void big7seg_display_on | ( | big7seg_t * | ctx | ) |
@breif Turn ON BIG 7-SEG display
ctx | Click object. |
@description Function enable BIG 7-SEG display
void big7seg_generic_transfer | ( | big7seg_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
BIG7SEG_RETVAL big7seg_init | ( | big7seg_t * | ctx, |
big7seg_cfg_t * | cfg ) |
Initialization function.
big7seg | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void big7seg_reset7seg | ( | big7seg_t * | ctx | ) |
@breif Function reset BIG 7-SEG
ctx | Click object. |
@description Function reset BIG 7-SEG display
void big7seg_set7seg | ( | big7seg_t * | ctx | ) |
@breif Function set BIG 7-SEG
ctx | Click object. |
@description Function set BIG 7-SEG display
void big7seg_write_data | ( | big7seg_t * | ctx, |
uint8_t | write_data ) |
@breif Generic write data function
ctx | Click object. |
write_data | Data to write |
@description Function will write number on BIG 7-SEG display
void big7seg_write_data_character | ( | big7seg_t * | ctx, |
char | display_char ) |
@breif Function write character
ctx | Click object. |
display_char |
@description Function write character on BIG 7-SEG display
void big7seg_write_data_number | ( | big7seg_t * | ctx, |
uint8_t | display_number ) |
@breif Function write number
ctx | Click object. |
display_number |
@description Function write number on BIG 7-SEG display