c7seg2 2.1.0.0
|
This file contains API for 7-SEG 2 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | c7seg2_t |
7-SEG 2 Click context object. More... | |
struct | c7seg2_cfg_t |
7-SEG 2 Click configuration object. More... | |
Enumerations | |
enum | c7seg2_return_value_t { C7SEG2_OK = 0 , C7SEG2_ERROR = -1 } |
7-SEG 2 Click return value data. More... | |
Functions | |
void | c7seg2_cfg_setup (c7seg2_cfg_t *cfg) |
7-SEG 2 configuration object setup function. | |
err_t | c7seg2_init (c7seg2_t *ctx, c7seg2_cfg_t *cfg) |
7-SEG 2 initialization function. | |
err_t | c7seg2_sw_reset (c7seg2_t *ctx) |
7-SEG 2 software reset function. | |
err_t | c7seg2_default_cfg (c7seg2_t *ctx) |
7-SEG 2 default configuration function. | |
err_t | c7seg2_generic_write (c7seg2_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
7-SEG 2 I2C writing function. | |
err_t | c7seg2_generic_read (c7seg2_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
7-SEG 2 I2C reading function. | |
uint8_t | c7seg2_get_int_pin (c7seg2_t *ctx) |
7-SEG 2 get interrupt pin state function. | |
err_t | c7seg2_write_reg (c7seg2_t *ctx, uint8_t reg, uint8_t data_in) |
7-SEG 2 I2C register writing function. | |
err_t | c7seg2_read_reg (c7seg2_t *ctx, uint8_t reg, uint8_t *data_out) |
7-SEG 2 I2C register reading function. | |
err_t | c7seg2_set_segments_current (c7seg2_t *ctx, float current_val) |
7-SEG 2 set segments current value function. | |
err_t | c7seg2_write_segment (c7seg2_t *ctx, uint8_t segment, uint8_t number, uint8_t dpt) |
7-SEG 2 single segment writing function. | |
err_t | c7seg2_disable_segments (c7seg2_t *ctx) |
7-SEG 2 disable segments function. | |
err_t | c7seg2_write_number (c7seg2_t *ctx, uint16_t number, uint8_t dpt) |
7-SEG 2 number writing function. | |
This file contains API for 7-SEG 2 Click Driver.