c7segrgb 2.0.0.0
|
This file contains API for 7-SEG RGB Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | c7segrgb_segment_t |
Click segments data. More... | |
struct | c7segrgb_t |
Click ctx object definition. More... | |
struct | c7segrgb_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | C7SEGRGB_MAP_MIKROBUS(cfg, mikrobus) |
#define | C7SEGRGB_OK 0 |
#define | C7SEGRGB_ERROR -1 |
#define | C7SEGRGB_ONE 0x06 |
#define | C7SEGRGB_TWO 0x5B |
#define | C7SEGRGB_THREE 0x4F |
#define | C7SEGRGB_FOUR 0x66 |
#define | C7SEGRGB_FIVE 0x6D |
#define | C7SEGRGB_SIX 0x7D |
#define | C7SEGRGB_SEVEN 0x07 |
#define | C7SEGRGB_EIGHT 0x7F |
#define | C7SEGRGB_NINE 0x6F |
#define | C7SEGRGB_ZERO 0x3F |
#define | C7SEGRGB_POINT 0x80 |
Typedefs | |
typedef void(* | drv_logic_t) (void) |
Function pointer for logic level one and zero. | |
Functions | |
void | c7segrgb_cfg_setup (c7segrgb_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | c7segrgb_init (c7segrgb_t *ctx, c7segrgb_cfg_t *cfg) |
Initialization function. | |
void | c7segrgb_cs_low (c7segrgb_t *ctx) |
Sets the state low of CS pin function. | |
void | c7segrgb_cs_high (c7segrgb_t *ctx) |
Sets the state high of CS pin function. | |
void | c7segrgb_pwm_low (c7segrgb_t *ctx) |
Sets the state low of PWM pin function. | |
void | c7segrgb_pwm_high (c7segrgb_t *ctx) |
Sets the state high of PWM pin function. | |
void | c7segrgb_set_num (c7segrgb_t *ctx, uint8_t character, uint8_t green_brightness, uint8_t red_brightness, uint8_t blue_brightness) |
Sets the character and its color function. | |
void | c7segrgb_set_seven_seg (c7segrgb_t *ctx) |
Sets all segments data. | |
This file contains API for 7-SEG RGB Click driver.