c7seg 2.0.0.0
|
Functions | |
void | c7seg_cfg_setup (c7seg_cfg_t *cfg) |
Config Object Initialization function. | |
C7SEG_RETVAL | c7seg_init (c7seg_t *ctx, c7seg_cfg_t *cfg) |
Initialization function. | |
void | c7seg_default_cfg (c7seg_t *ctx) |
Click Default Configuration function. | |
void | c7seg_generic_transfer (c7seg_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | c7seg_write_data (c7seg_t *ctx, uint8_t write_left, uint8_t write_right) |
Generic write data function. | |
void | c7seg_reset (c7seg_t *ctx) |
Click Reset function. | |
void | c7seg_display_mode (c7seg_t *ctx, uint8_t display_mode) |
Display mode function. | |
void | c7seg_write_data_number (c7seg_t *ctx, uint8_t left_number, uint8_t right_number) |
void | c7seg_write_data_character (c7seg_t *ctx, char left_char, char right_char) |
void c7seg_cfg_setup | ( | c7seg_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void c7seg_default_cfg | ( | c7seg_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for c7seg click.
Sets MR pin high
Display on
void c7seg_display_mode | ( | c7seg_t * | ctx, |
uint8_t | display_mode ) |
Display mode function.
ctx | Click object. |
display_mode | State of display. |
@description This function sets display state for 7seg click.
void c7seg_generic_transfer | ( | c7seg_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
C7SEG_RETVAL c7seg_init | ( | c7seg_t * | ctx, |
c7seg_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 c7seg_reset | ( | c7seg_t * | ctx | ) |
Click Reset function.
ctx | Click object. |
@description This function executes device reset for 7seg click.
void c7seg_write_data | ( | c7seg_t * | ctx, |
uint8_t | write_left, | ||
uint8_t | write_right ) |
Generic write data function.
ctx | Click object. |
write_left | Left data to write. |
write_right | Right data to write. |
@description This function write left and right data on 7seg display.
void c7seg_write_data_character | ( | c7seg_t * | ctx, |
char | left_char, | ||
char | right_char ) |
@breif Write character on 7seg diaplay.
ctx | Click object. |
left_char | Left character to write. |
right_char | Right character to write. |
@description This function writes left and right character on 7seg display.
void c7seg_write_data_number | ( | c7seg_t * | ctx, |
uint8_t | left_number, | ||
uint8_t | right_number ) |
@breif Write number on 7seg diaplay.
ctx | Click object. |
left_number | Left data to write. |
right_number | Right data to write. |
@description This function writes left and right number on 7seg display.