dotmatrixr 2.0.0.0
|
Functions | |
void | dotmatrixr_cfg_setup (dotmatrixr_cfg_t *cfg) |
Config Object Initialization function. | |
DOTMATRIXR_RETVAL | dotmatrixr_init (dotmatrixr_t *ctx, dotmatrixr_cfg_t *cfg) |
Initialization function. | |
void | dotmatrixr_generic_transfer (dotmatrixr_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | dotmatrixr_set_bl_pin_state (dotmatrixr_t *ctx, uint8_t state) |
Sets BL pin to high or low state. | |
void | dotmatrixr_set_rs_pin_state (dotmatrixr_t *ctx, uint8_t state) |
Sets RS pin to high or low state. | |
void | dotmatrixr_set_rst_pin_state (dotmatrixr_t *ctx, uint8_t state) |
Sets RST pin to high or low state. | |
void | dotmatrixr_restart (dotmatrixr_t *ctx) |
Restart device. | |
void | dotmatrixr_ctrl_0 (dotmatrixr_t *ctx, uint8_t ctrl_byte) |
Function for writing control word 0. | |
void | dotmatrixr_ctrl_1 (dotmatrixr_t *ctx, uint8_t ctrl_byte) |
Function for writing control word 1. | |
void | dotmatrixr_write_ascii (dotmatrixr_t *ctx, char *ascii_data) |
Sets display to written value. | |
void dotmatrixr_cfg_setup | ( | dotmatrixr_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void dotmatrixr_ctrl_0 | ( | dotmatrixr_t * | ctx, |
uint8_t | ctrl_byte ) |
Function for writing control word 0.
ctx | Click object. |
ctrl_byte | Control byte |
void dotmatrixr_ctrl_1 | ( | dotmatrixr_t * | ctx, |
uint8_t | ctrl_byte ) |
Function for writing control word 1.
ctx | Click object. |
ctrl_byte | Control byte |
void dotmatrixr_generic_transfer | ( | dotmatrixr_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
DOTMATRIXR_RETVAL dotmatrixr_init | ( | dotmatrixr_t * | ctx, |
dotmatrixr_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 dotmatrixr_restart | ( | dotmatrixr_t * | ctx | ) |
Restart device.
ctx | Click object. |
void dotmatrixr_set_bl_pin_state | ( | dotmatrixr_t * | ctx, |
uint8_t | state ) |
Sets BL pin to high or low state.
ctx | Click object. |
state | Pin state |
void dotmatrixr_set_rs_pin_state | ( | dotmatrixr_t * | ctx, |
uint8_t | state ) |
Sets RS pin to high or low state.
ctx | Click object. |
state | Pin state |
void dotmatrixr_set_rst_pin_state | ( | dotmatrixr_t * | ctx, |
uint8_t | state ) |
Sets RST pin to high or low state.
ctx | Click object. |
state | Pin state |
void dotmatrixr_write_ascii | ( | dotmatrixr_t * | ctx, |
char * | ascii_data ) |
Sets display to written value.
ctx | Click object. |
ascii_data | String to be displayed |