utl7segr 2.0.0.0
|
API for configuring and manipulating UT-L 7-SEG R Click driver. More...
Topics | |
UT-L 7-SEG R Registers Settings | |
Settings for registers of UT-L 7-SEG R Click driver. | |
UT-L 7-SEG R MikroBUS Map | |
MikroBUS pin mapping of UT-L 7-SEG R Click driver. | |
Functions | |
void | utl7segr_cfg_setup (utl7segr_cfg_t *cfg) |
UT-L 7-SEG R configuration object setup function. | |
err_t | utl7segr_init (utl7segr_t *ctx, utl7segr_cfg_t *cfg) |
UT-L 7-SEG R initialization function. | |
void | utl7segr_default_cfg (utl7segr_t *ctx) |
UT-L 7-SEG R default configuration function. | |
err_t | utl7segr_generic_write (utl7segr_t *ctx, uint8_t *data_in) |
UT-L 7-SEG R data writing function. | |
void | utl7segr_display_state (utl7segr_t *ctx, uint8_t state) |
UT-L 7-SEG R display state function. | |
err_t | utl7segr_display_number (utl7segr_t *ctx, uint8_t number, uint8_t dot_pos) |
UT-L 7-SEG R display number function. | |
API for configuring and manipulating UT-L 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.
void utl7segr_cfg_setup | ( | utl7segr_cfg_t * | cfg | ) |
UT-L 7-SEG R configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See utl7segr_cfg_t object definition for detailed explanation. |
void utl7segr_default_cfg | ( | utl7segr_t * | ctx | ) |
UT-L 7-SEG R default configuration function.
This function executes a default configuration of UT-L 7-SEG R click board.
[in] | ctx | : Click context object. See utl7segr_t object definition for detailed explanation. |
err_t utl7segr_display_number | ( | utl7segr_t * | ctx, |
uint8_t | number, | ||
uint8_t | dot_pos ) |
UT-L 7-SEG R display number function.
This function is used to show the number on the display.
[in] | ctx | : Click context object. See utl7segr_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). |
0
- Success, -1
- Error.void utl7segr_display_state | ( | utl7segr_t * | ctx, |
uint8_t | state ) |
UT-L 7-SEG R display state function.
This function turns display on and off.
[in] | ctx | : Click context object. See utl7segr_t object definition for detailed explanation. |
[in] | state | :
|
err_t utl7segr_generic_write | ( | utl7segr_t * | ctx, |
uint8_t * | data_in ) |
UT-L 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.
[in] | ctx | : Click context object. See utl7segr_t object definition for detailed explanation. |
[in] | data_in | : Data to be written. |
0
- Success, -1
- Error.err_t utl7segr_init | ( | utl7segr_t * | ctx, |
utl7segr_cfg_t * | cfg ) |
UT-L 7-SEG R initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See utl7segr_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See utl7segr_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.