matrixr 2.0.0.0
|
Functions | |
void | matrixr_cfg_setup (matrixr_cfg_t *cfg) |
Config Object Initialization function. | |
MATRIXR_RETVAL | matrixr_init (matrixr_t *ctx, matrixr_cfg_t *cfg) |
Initialization function. | |
void | matrixr_default_cfg (matrixr_t *ctx) |
Click Default Configuration function. | |
void | matrixr_display_characters (matrixr_t *ctx, uint8_t left_char, uint8_t right_char) |
Display characters function. | |
void | matrixr_write_reg (matrixr_t *ctx, uint8_t address, uint8_t input_data) |
Register write function. | |
void | matrixr_set_csn_high (matrixr_t *ctx) |
Set CSN pin to high function. | |
void | matrixr_set_csn_low (matrixr_t *ctx) |
Set CSN pin to low function. | |
void matrixr_cfg_setup | ( | matrixr_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void matrixr_default_cfg | ( | matrixr_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Matrix RG click.
void matrixr_display_characters | ( | matrixr_t * | ctx, |
uint8_t | left_char, | ||
uint8_t | right_char ) |
Display characters function.
ctx | Click object. |
left_char | ASCII value for the character printed on the left segment. |
right_char | ASCII value for the character printed on the right segment. |
@description This function displays the specified characters on the L/R segments of the click.
MATRIXR_RETVAL matrixr_init | ( | matrixr_t * | ctx, |
matrixr_cfg_t * | cfg ) |
Initialization function.
matrixr | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void matrixr_set_csn_high | ( | matrixr_t * | ctx | ) |
Set CSN pin to high function.
ctx | Click object. |
@description This function sets the CSN pin output to high.
void matrixr_set_csn_low | ( | matrixr_t * | ctx | ) |
Set CSN pin to low function.
ctx | Click object. |
@description This function sets the CSN pin output to low.
void matrixr_write_reg | ( | matrixr_t * | ctx, |
uint8_t | address, | ||
uint8_t | input_data ) |
Register write function.
ctx | Click object. |
address | Address to which the data is written. |
input_data | Input data variable. |
@description This function writes one byte of data to the specified address.