matrixg 2.0.0.0
Public function

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.
 

Detailed Description

Function Documentation

◆ matrixg_cfg_setup()

void matrixg_cfg_setup ( matrixg_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ matrixg_default_cfg()

void matrixg_default_cfg ( matrixg_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for Matrix RG click.

◆ matrixg_display_characters()

void matrixg_display_characters ( matrixg_t * ctx,
uint8_t left_char,
uint8_t right_char )

Display characters function.

Parameters
ctxClick object.
left_charASCII value for the character printed on the left segment.
right_charASCII 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_init()

MATRIXG_RETVAL matrixg_init ( matrixg_t * ctx,
matrixg_cfg_t * cfg )

Initialization function.

Parameters
matrixgClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ matrixg_set_csn_high()

void matrixg_set_csn_high ( matrixg_t * ctx)

Set CSN pin to high function.

Parameters
ctxClick object.

@description This function sets the CSN pin output to high.

◆ matrixg_set_csn_low()

void matrixg_set_csn_low ( matrixg_t * ctx)

Set CSN pin to low function.

Parameters
ctxClick object.

@description This function sets the CSN pin output to low.

◆ matrixg_write_reg()

void matrixg_write_reg ( matrixg_t * ctx,
uint8_t address,
uint8_t input_data )

Register write function.

Parameters
ctxClick object.
addressAddress to which the data is written.
input_dataInput data variable.

@description This function writes one byte of data to the specified address.