uts7segr 2.0.0.0
UT-S 7-SEG R Click Driver

API for configuring and manipulating UT-S 7-SEG R Click driver. More...

Topics

 UT-S 7-SEG R Registers Settings
 Settings for registers of UT-S 7-SEG R Click driver.
 
 UT-S 7-SEG R MikroBUS Map
 MikroBUS pin mapping of UT-S 7-SEG R Click driver.
 

Functions

void uts7segr_cfg_setup (uts7segr_cfg_t *cfg)
 UT-S 7-SEG R configuration object setup function.
 
err_t uts7segr_init (uts7segr_t *ctx, uts7segr_cfg_t *cfg)
 UT-S 7-SEG R initialization function.
 
void uts7segr_default_cfg (uts7segr_t *ctx)
 UT-S 7-SEG R default configuration function.
 
err_t uts7segr_generic_write (uts7segr_t *ctx, uint8_t *data_in)
 UT-S 7-SEG R data writing function.
 
void uts7segr_display_state (uts7segr_t *ctx, uint8_t state)
 UT-S 7-SEG R display state function.
 
err_t uts7segr_display_number (uts7segr_t *ctx, uint8_t number, uint8_t dot_pos)
 UT-S 7-SEG R display number function.
 

Detailed Description

API for configuring and manipulating UT-S 7-SEG R Click driver.

Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.

Function Documentation

◆ uts7segr_cfg_setup()

void uts7segr_cfg_setup ( uts7segr_cfg_t * cfg)

UT-S 7-SEG R configuration object setup function.

This function initializes click configuration structure to initial values.

Parameters
[out]cfg: Click configuration structure. See uts7segr_cfg_t object definition for detailed explanation.
Returns
Nothing.
Note
The all used pins will be set to unconnected state.

◆ uts7segr_default_cfg()

void uts7segr_default_cfg ( uts7segr_t * ctx)

UT-S 7-SEG R default configuration function.

This function executes a default configuration of UT-S 7-SEG R click board.

Parameters
[in]ctx: Click context object. See uts7segr_t object definition for detailed explanation.
Returns
Nothing.
Note
This function can consist any necessary configuration or setting to put device into operating mode.

◆ uts7segr_display_number()

err_t uts7segr_display_number ( uts7segr_t * ctx,
uint8_t number,
uint8_t dot_pos )

UT-S 7-SEG R display number function.

This function displays number on dispaly matrix.

Parameters
[in]ctx: Click context object. See uts7segr_t object definition for detailed explanation.
[in]number: Number from 0 to 99.
[in]dot_pos: Dot position (No use dot, dot left, dot right and dot left and right).
Returns
  • 0 - Success,
  • -1 - Error.
See #err_t definition for detailed explanation.
Note
None.

◆ uts7segr_display_state()

void uts7segr_display_state ( uts7segr_t * ctx,
uint8_t state )

UT-S 7-SEG R display state function.

This function display state.

Parameters
[in]ctx: Click context object. See uts7segr_t object definition for detailed explanation.
[in]state: Display state (ON or OFF state).
Returns
Nothing.
Note
None.

◆ uts7segr_generic_write()

err_t uts7segr_generic_write ( uts7segr_t * ctx,
uint8_t * data_in )

UT-S 7-SEG R data writing function.

This function writes a desired number of data bytes starting from the selected register by using SPI serial interface.

Parameters
[in]ctx: Click context object. See uts7segr_t object definition for detailed explanation.
[in]data_in: Data to be written.
Returns
  • 0 - Success,
  • -1 - Error.
See #err_t definition for detailed explanation.
Note
None.

◆ uts7segr_init()

err_t uts7segr_init ( uts7segr_t * ctx,
uts7segr_cfg_t * cfg )

UT-S 7-SEG R initialization function.

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

Parameters
[out]ctx: Click context object. See uts7segr_t object definition for detailed explanation.
[in]cfg: Click configuration structure. See uts7segr_cfg_t object definition for detailed explanation.
Returns
  • 0 - Success,
  • -1 - Error.
See #err_t definition for detailed explanation.
Note
None.