c16x9 2.0.0.0
Public function

Functions

void c16x9_cfg_setup (c16x9_cfg_t *cfg)
 Config Object Initialization function.
 
C16X9_RETVAL c16x9_init (c16x9_t *ctx, c16x9_cfg_t *cfg)
 Initialization function.
 
void c16x9_generic_write (c16x9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void c16x9_control_all (c16x9_t *ctx, uint8_t ctrl, uint8_t state)
 Functions for control all leds.
 
void c16x9_fill_screen (c16x9_t *ctx, uint8_t pwm)
 Functions for fill screen.
 
void c16x9_display_refresh (c16x9_t *ctx)
 Function for refresh display.
 
void c16x9_draw_point (c16x9_t *ctx, c16x9_point_t *point)
 Functions for draw point .
 
void c16x9_display_image (c16x9_t *ctx, c16x9_image_t *image)
 Image display function.
 
void c16x9_display_byte (c16x9_t *ctx, c16x9_char_t *data_char)
 Function for displaying one character.
 
void c16x9_draw_rectangle (c16x9_t *ctx, c16x9_rectangle_t *rectangle)
 Draw rectangle.
 
uint8_t c16x9_get_interrupt_state (c16x9_t *ctx)
 Interrupt pin state.
 

Detailed Description

Function Documentation

◆ c16x9_cfg_setup()

void c16x9_cfg_setup ( c16x9_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.

◆ c16x9_control_all()

void c16x9_control_all ( c16x9_t * ctx,
uint8_t ctrl,
uint8_t state )

Functions for control all leds.

Parameters
ctrlSelects LED or BLINK control registers.
stateState to write (0 or 1) for all diodes.
Note
The function can be used to control all diodes at once (store on or off state or control the blink function for each LED).

◆ c16x9_display_byte()

void c16x9_display_byte ( c16x9_t * ctx,
c16x9_char_t * data_char )

Function for displaying one character.

Parameters
ctxClick object.
data_charstructure for draw char

◆ c16x9_display_image()

void c16x9_display_image ( c16x9_t * ctx,
c16x9_image_t * image )

Image display function.

Parameters
ctxClick object.
imagestructure for draw image
Note
Function for displays the image. The image consists of nine elements (nine columns that build the image).

◆ c16x9_display_refresh()

void c16x9_display_refresh ( c16x9_t * ctx)

Function for refresh display.

Parameters
ctxClick object.
Note
The function switches off all LEDs

◆ c16x9_draw_point()

void c16x9_draw_point ( c16x9_t * ctx,
c16x9_point_t * point )

Functions for draw point .

Parameters
ctxClick object.
pointstructure for draw point

◆ c16x9_draw_rectangle()

void c16x9_draw_rectangle ( c16x9_t * ctx,
c16x9_rectangle_t * rectangle )

Draw rectangle.

Parameters
ctxClick object.
rectanglestructure for draw rectangle

◆ c16x9_fill_screen()

void c16x9_fill_screen ( c16x9_t * ctx,
uint8_t pwm )

Functions for fill screen.

Parameters
ctxClick object.
pwmPWM value.
Note
The function writes PWM value for all diode in matrix.

◆ c16x9_generic_write()

void c16x9_generic_write ( c16x9_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic write function.

Parameters
ctxClick object.
regRegister address.
data_bufData buf to be written.
lenNumber of the bytes in data buf.

@description This function writes data to the desired register.

◆ c16x9_get_interrupt_state()

uint8_t c16x9_get_interrupt_state ( c16x9_t * ctx)

Interrupt pin state.

Parameters
ctxClick object.
Returns
Interrupt pin state

◆ c16x9_init()

C16X9_RETVAL c16x9_init ( c16x9_t * ctx,
c16x9_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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