leddriver15 2.1.0.0
|
This file contains API for LED Driver 15 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 | leddriver15_t |
LED Driver 15 Click context object. More... | |
struct | leddriver15_cfg_t |
LED Driver 15 Click configuration object. More... | |
Macros | |
#define | LEDDRIVER15_REG_R0 0x00 |
LED Driver 15 register list. | |
#define | LEDDRIVER15_REG_R1 0x01 |
#define | LEDDRIVER15_R0_EN 0x80 |
LED Driver 15 REG_R0 register setting. | |
#define | LEDDRIVER15_R0_REF_SET_MASK 0x7C |
#define | LEDDRIVER15_R0_REF_SET_OFFSET 2 |
#define | LEDDRIVER15_R1_DIMS_I2C 0x00 |
LED Driver 15 REG_R1 register setting. | |
#define | LEDDRIVER15_R1_DIMS_PWM 0x40 |
#define | LEDDRIVER15_R1_DIMS_MASK 0x40 |
#define | LEDDRIVER15_R1_SYNC_DISABLE 0x00 |
#define | LEDDRIVER15_R1_SYNC_ENABLE 0x20 |
#define | LEDDRIVER15_R1_SYNC_MASK 0x20 |
#define | LEDDRIVER15_R1_OVP_13p5V 0x00 |
#define | LEDDRIVER15_R1_OVP_24V 0x10 |
#define | LEDDRIVER15_R1_OVP_35p5V 0x08 |
#define | LEDDRIVER15_R1_OVP_MASK 0x18 |
#define | LEDDRIVER15_R1_VOS 0x04 |
#define | LEDDRIVER15_R1_LED0 0x02 |
#define | LEDDRIVER15_R1_OTP 0x01 |
#define | LEDDRIVER15_I2C_DIMMING_MIN 0 |
LED Driver 15 I2C dimming setting. | |
#define | LEDDRIVER15_I2C_DIMMING_MAX 31 |
#define | LEDDRIVER15_DEVICE_ADDRESS 0x17 |
LED Driver 15 device address setting. | |
#define | LEDDRIVER15_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | leddriver15_return_value_t { LEDDRIVER15_OK = 0 , LEDDRIVER15_ERROR = -1 } |
LED Driver 15 Click return value data. More... | |
Functions | |
void | leddriver15_cfg_setup (leddriver15_cfg_t *cfg) |
LED Driver 15 configuration object setup function. | |
err_t | leddriver15_init (leddriver15_t *ctx, leddriver15_cfg_t *cfg) |
LED Driver 15 initialization function. | |
err_t | leddriver15_default_cfg (leddriver15_t *ctx) |
LED Driver 15 default configuration function. | |
err_t | leddriver15_write_register (leddriver15_t *ctx, uint8_t reg, uint8_t data_in) |
LED Driver 15 write register function. | |
err_t | leddriver15_read_register (leddriver15_t *ctx, uint8_t reg, uint8_t *data_out) |
LED Driver 15 read register function. | |
void | leddriver15_enable_device (leddriver15_t *ctx) |
LED Driver 15 enable device function. | |
void | leddriver15_disable_device (leddriver15_t *ctx) |
LED Driver 15 disable device function. | |
err_t | leddriver15_set_i2c_dimming (leddriver15_t *ctx, uint8_t dimming) |
LED Driver 15 set i2c dimming function. | |
This file contains API for LED Driver 15 Click Driver.