c16x9 2.0.0.0
|
Functions | |
void | c16x9_cfg_setup (c16x9_cfg_t *cfg) |
Config Object Initialization function. | |
C16X9_RETVAL | c16x9_init (c16x9_t *ctx, c16x9_cfg_t *cfg) |
Initialization function. | |
void | c16x9_generic_write (c16x9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | c16x9_control_all (c16x9_t *ctx, uint8_t ctrl, uint8_t state) |
Functions for control all leds. | |
void | c16x9_fill_screen (c16x9_t *ctx, uint8_t pwm) |
Functions for fill screen. | |
void | c16x9_display_refresh (c16x9_t *ctx) |
Function for refresh display. | |
void | c16x9_draw_point (c16x9_t *ctx, c16x9_point_t *point) |
Functions for draw point . | |
void | c16x9_display_image (c16x9_t *ctx, c16x9_image_t *image) |
Image display function. | |
void | c16x9_display_byte (c16x9_t *ctx, c16x9_char_t *data_char) |
Function for displaying one character. | |
void | c16x9_draw_rectangle (c16x9_t *ctx, c16x9_rectangle_t *rectangle) |
Draw rectangle. | |
uint8_t | c16x9_get_interrupt_state (c16x9_t *ctx) |
Interrupt pin state. | |
void c16x9_cfg_setup | ( | c16x9_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void c16x9_control_all | ( | c16x9_t * | ctx, |
uint8_t | ctrl, | ||
uint8_t | state ) |
Functions for control all leds.
ctrl | Selects LED or BLINK control registers. |
state | State to write (0 or 1) for all diodes. |
void c16x9_display_byte | ( | c16x9_t * | ctx, |
c16x9_char_t * | data_char ) |
Function for displaying one character.
ctx | Click object. |
data_char | structure for draw char |
void c16x9_display_image | ( | c16x9_t * | ctx, |
c16x9_image_t * | image ) |
Image display function.
ctx | Click object. |
image | structure for draw image |
void c16x9_display_refresh | ( | c16x9_t * | ctx | ) |
Function for refresh display.
ctx | Click object. |
void c16x9_draw_point | ( | c16x9_t * | ctx, |
c16x9_point_t * | point ) |
Functions for draw point .
ctx | Click object. |
point | structure for draw point |
void c16x9_draw_rectangle | ( | c16x9_t * | ctx, |
c16x9_rectangle_t * | rectangle ) |
Draw rectangle.
ctx | Click object. |
rectangle | structure for draw rectangle |
void c16x9_fill_screen | ( | c16x9_t * | ctx, |
uint8_t | pwm ) |
Functions for fill screen.
ctx | Click object. |
pwm | PWM value. |
void c16x9_generic_write | ( | c16x9_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
uint8_t c16x9_get_interrupt_state | ( | c16x9_t * | ctx | ) |
Interrupt pin state.
ctx | Click object. |
C16X9_RETVAL c16x9_init | ( | c16x9_t * | ctx, |
c16x9_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.