uts7segr 2.0.0.0
|
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. | |
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.
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.
[out] | cfg | : Click configuration structure. See uts7segr_cfg_t object definition for detailed explanation. |
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.
[in] | ctx | : Click context object. See uts7segr_t object definition for detailed explanation. |
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.
[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). |
0
- Success, -1
- Error.void uts7segr_display_state | ( | uts7segr_t * | ctx, |
uint8_t | state ) |
UT-S 7-SEG R display state function.
This function display state.
[in] | ctx | : Click context object. See uts7segr_t object definition for detailed explanation. |
[in] | state | : Display state (ON or OFF state). |
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.
[in] | ctx | : Click context object. See uts7segr_t object definition for detailed explanation. |
[in] | data_in | : Data to be written. |
0
- Success, -1
- Error.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.
[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. |
0
- Success, -1
- Error.