c7seg 2.0.0.0
Public function

Functions

void c7seg_cfg_setup (c7seg_cfg_t *cfg)
 Config Object Initialization function.
 
C7SEG_RETVAL c7seg_init (c7seg_t *ctx, c7seg_cfg_t *cfg)
 Initialization function.
 
void c7seg_default_cfg (c7seg_t *ctx)
 Click Default Configuration function.
 
void c7seg_generic_transfer (c7seg_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len)
 Generic transfer function.
 
void c7seg_write_data (c7seg_t *ctx, uint8_t write_left, uint8_t write_right)
 Generic write data function.
 
void c7seg_reset (c7seg_t *ctx)
 Click Reset function.
 
void c7seg_display_mode (c7seg_t *ctx, uint8_t display_mode)
 Display mode function.
 
void c7seg_write_data_number (c7seg_t *ctx, uint8_t left_number, uint8_t right_number)
 
void c7seg_write_data_character (c7seg_t *ctx, char left_char, char right_char)
 

Detailed Description

Function Documentation

◆ c7seg_cfg_setup()

void c7seg_cfg_setup ( c7seg_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.

◆ c7seg_default_cfg()

void c7seg_default_cfg ( c7seg_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for c7seg click.

Note

Click default configuration:

   Sets MR pin high
   Display on

◆ c7seg_display_mode()

void c7seg_display_mode ( c7seg_t * ctx,
uint8_t display_mode )

Display mode function.

Parameters
ctxClick object.
display_modeState of display.

@description This function sets display state for 7seg click.

◆ c7seg_generic_transfer()

void c7seg_generic_transfer ( c7seg_t * ctx,
uint8_t * wr_buf,
uint16_t wr_len,
uint8_t * rd_buf,
uint16_t rd_len )

Generic transfer function.

Parameters
ctxClick object.
wr_bufWrite data buffer
wr_lenNumber of byte in write data buffer
rd_bufRead data buffer
rd_lenNumber of byte in read data buffer

@description Generic SPI transfer, for sending and receiving packages

◆ c7seg_init()

C7SEG_RETVAL c7seg_init ( c7seg_t * ctx,
c7seg_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ c7seg_reset()

void c7seg_reset ( c7seg_t * ctx)

Click Reset function.

Parameters
ctxClick object.

@description This function executes device reset for 7seg click.

◆ c7seg_write_data()

void c7seg_write_data ( c7seg_t * ctx,
uint8_t write_left,
uint8_t write_right )

Generic write data function.

Parameters
ctxClick object.
write_leftLeft data to write.
write_rightRight data to write.

@description This function write left and right data on 7seg display.

◆ c7seg_write_data_character()

void c7seg_write_data_character ( c7seg_t * ctx,
char left_char,
char right_char )

@breif Write character on 7seg diaplay.

Parameters
ctxClick object.
left_charLeft character to write.
right_charRight character to write.

@description This function writes left and right character on 7seg display.

◆ c7seg_write_data_number()

void c7seg_write_data_number ( c7seg_t * ctx,
uint8_t left_number,
uint8_t right_number )

@breif Write number on 7seg diaplay.

Parameters
ctxClick object.
left_numberLeft data to write.
right_numberRight data to write.

@description This function writes left and right number on 7seg display.