matrixg 2.0.0.0
|
Functions | |
void | matrixg_cfg_setup (matrixg_cfg_t *cfg) |
Config Object Initialization function. | |
MATRIXG_RETVAL | matrixg_init (matrixg_t *ctx, matrixg_cfg_t *cfg) |
Initialization function. | |
void | matrixg_default_cfg (matrixg_t *ctx) |
Click Default Configuration function. | |
void | matrixg_display_characters (matrixg_t *ctx, uint8_t left_char, uint8_t right_char) |
Display characters function. | |
void | matrixg_write_reg (matrixg_t *ctx, uint8_t address, uint8_t input_data) |
Register write function. | |
void | matrixg_set_csn_high (matrixg_t *ctx) |
Set CSN pin to high function. | |
void | matrixg_set_csn_low (matrixg_t *ctx) |
Set CSN pin to low function. | |
void matrixg_cfg_setup | ( | matrixg_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void matrixg_default_cfg | ( | matrixg_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Matrix RG click.
void matrixg_display_characters | ( | matrixg_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.
MATRIXG_RETVAL matrixg_init | ( | matrixg_t * | ctx, |
matrixg_cfg_t * | cfg ) |
Initialization function.
matrixg | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void matrixg_set_csn_high | ( | matrixg_t * | ctx | ) |
Set CSN pin to high function.
ctx | Click object. |
@description This function sets the CSN pin output to high.
void matrixg_set_csn_low | ( | matrixg_t * | ctx | ) |
Set CSN pin to low function.
ctx | Click object. |
@description This function sets the CSN pin output to low.
void matrixg_write_reg | ( | matrixg_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.