matrixr 2.0.0.0
Public function

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.
 

Detailed Description

Function Documentation

◆ matrixr_cfg_setup()

void matrixr_cfg_setup ( matrixr_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.

◆ matrixr_default_cfg()

void matrixr_default_cfg ( matrixr_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

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

◆ matrixr_display_characters()

void matrixr_display_characters ( matrixr_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.

◆ matrixr_init()

MATRIXR_RETVAL matrixr_init ( matrixr_t * ctx,
matrixr_cfg_t * cfg )

Initialization function.

Parameters
matrixrClick object.
cfgClick configuration structure.

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

◆ matrixr_set_csn_high()

void matrixr_set_csn_high ( matrixr_t * ctx)

Set CSN pin to high function.

Parameters
ctxClick object.

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

◆ matrixr_set_csn_low()

void matrixr_set_csn_low ( matrixr_t * ctx)

Set CSN pin to low function.

Parameters
ctxClick object.

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

◆ matrixr_write_reg()

void matrixr_write_reg ( matrixr_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.