utm7segr 2.0.0.0
utm7segr.h File Reference

This file contains API for UT-M 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  utm7segr_t
 UT-M 7-SEG R Click context object. More...
 
struct  utm7segr_cfg_t
 UT-M 7-SEG R Click configuration object. More...
 

Macros

#define UTM7SEGR_DOT_LEFT   0x02
 UT-M 7-SEG R description setting.
 
#define UTM7SEGR_DOT_RIGHT   0x01
 
#define UTM7SEGR_DOT_LEFT_RIGHT   0x03
 
#define UTM7SEGR_NO_DOT   0x00
 
#define UTM7SEGR_DISPLAY_ON   0x01
 
#define UTM7SEGR_DISPLAY_OFF   0x00
 
#define UTM7SEGR_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  utm7segr_return_value_t { UTM7SEGR_OK = 0 , UTM7SEGR_ERROR = -1 }
 UT-M 7-SEG R Click return value data. More...
 

Functions

void utm7segr_cfg_setup (utm7segr_cfg_t *cfg)
 UT-M 7-SEG R configuration object setup function.
 
err_t utm7segr_init (utm7segr_t *ctx, utm7segr_cfg_t *cfg)
 UT-M 7-SEG R initialization function.
 
void utm7segr_default_cfg (utm7segr_t *ctx)
 UT-M 7-SEG R default configuration function.
 
err_t utm7segr_generic_write (utm7segr_t *ctx, uint8_t *data_in)
 UT-M 7-SEG R data writing function.
 
void utm7segr_display_state (utm7segr_t *ctx, uint8_t state)
 UT-M 7-SEG R display state function.
 
err_t utm7segr_display_number (utm7segr_t *ctx, uint8_t number, uint8_t dot_pos)
 UT-M 7-SEG R display number function.
 

Detailed Description

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

Enumeration Type Documentation

◆ utm7segr_return_value_t

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

Predefined enum values for driver return values.

Enumerator
UTM7SEGR_OK 
UTM7SEGR_ERROR