uts7segr 2.0.0.0
uts7segr.h File Reference

This file contains API for UT-S 7-SEG R Click Driver. More...

#include "drv_digital_out.h"
#include "drv_spi_master.h"

Go to the source code of this file.

Data Structures

struct  uts7segr_t
 UT-S 7-SEG R Click context object. More...
 
struct  uts7segr_cfg_t
 UT-S 7-SEG R Click configuration object. More...
 

Macros

#define UTS7SEGR_DISPLAY_ON   0x01
 UT-S 7-SEG R Display state setting.
 
#define UTS7SEGR_DISPLAY_OFF   0x00
 
#define UTS7SEGR_DOT_LEFT   0x02
 
#define UTS7SEGR_DOT_RIGHT   0x01
 
#define UTS7SEGR_DOT_LEFT_RIGHT   0x03
 
#define UTS7SEGR_NO_DOT   0x00
 
#define UTS7SEGR_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  uts7segr_return_value_t { UTS7SEGR_OK = 0 , UTS7SEGR_ERROR = -1 }
 UT-S 7-SEG R Click return value data. More...
 

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

This file contains API for UT-S 7-SEG R Click Driver.

Enumeration Type Documentation

◆ uts7segr_return_value_t

UT-S 7-SEG R Click return value data.

Predefined enum values for driver return values.

Enumerator
UTS7SEGR_OK 
UTS7SEGR_ERROR