c7seg 2.0.0.0
|
This file contains API for 7seg Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | c7seg_t |
Click ctx object definition. More... | |
struct | c7seg_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | C7SEG_MAP_MIKROBUS(cfg, mikrobus) |
#define | C7SEG_RETVAL uint8_t |
#define | C7SEG_OK 0x00 |
#define | C7SEG_INIT_ERROR 0xFF |
#define | C7SEG_DISPLAY_OFF 0 |
#define | C7SEG_DISPLAY_ON 1 |
Functions | |
void | c7seg_cfg_setup (c7seg_cfg_t *cfg) |
Config Object Initialization function. | |
C7SEG_RETVAL | c7seg_init (c7seg_t *ctx, c7seg_cfg_t *cfg) |
Initialization function. | |
void | c7seg_default_cfg (c7seg_t *ctx) |
Click Default Configuration function. | |
void | c7seg_generic_transfer (c7seg_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | c7seg_write_data (c7seg_t *ctx, uint8_t write_left, uint8_t write_right) |
Generic write data function. | |
void | c7seg_reset (c7seg_t *ctx) |
Click Reset function. | |
void | c7seg_display_mode (c7seg_t *ctx, uint8_t display_mode) |
Display mode function. | |
void | c7seg_write_data_number (c7seg_t *ctx, uint8_t left_number, uint8_t right_number) |
void | c7seg_write_data_character (c7seg_t *ctx, char left_char, char right_char) |
This file contains API for 7seg Click driver.