leddriver11 2.0.0.0
|
This file contains API for LED Driver 11 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_analog_in.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | leddriver11_t |
LED Driver 11 Click context object. More... | |
struct | leddriver11_cfg_t |
LED Driver 11 Click configuration object. More... | |
Macros | |
#define | LEDDRIVER11_MAX_CURRENT 0x0000 |
LED Driver 11 LED current settings. | |
#define | LEDDRIVER11_MIN_CURRENT 0x0FFF |
#define | LEDDRIVER11_DEF_FREQ 5000 |
LED Driver 11 default PWM frequency. | |
#define | LEDDRIVER11_SET_DEV_ADDR 0x60 |
LED Driver 11 device address setting. | |
#define | LEDDRIVER11_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | leddriver11_return_value_t { LEDDRIVER11_OK = 0 , LEDDRIVER11_ERROR = -1 } |
LED Driver 11 Click return value data. More... | |
Functions | |
void | leddriver11_cfg_setup (leddriver11_cfg_t *cfg) |
LED Driver 11 configuration object setup function. | |
err_t | leddriver11_init (leddriver11_t *ctx, leddriver11_cfg_t *cfg) |
LED Driver 11 initialization function. | |
err_t | leddriver11_default_cfg (leddriver11_t *ctx) |
LED Driver 11 default configuration function. | |
err_t | leddriver11_set_current (leddriver11_t *ctx, uint16_t curr) |
LED Driver 11 set current function. | |
err_t | leddriver11_read_dac_memory (leddriver11_t *ctx, uint8_t *data_out) |
LED Driver 11 read DAC memory. | |
err_t | leddriver11_read_an_pin_value (leddriver11_t *ctx, uint16_t *data_out) |
LED Driver 11 read AN pin value function. | |
err_t | leddriver11_read_an_pin_voltage (leddriver11_t *ctx, float *data_out) |
LED Driver 11 read AN pin voltage level function. | |
err_t | leddriver11_set_duty_cycle (leddriver11_t *ctx, float duty_cycle) |
LED Driver 11 sets PWM duty cycle. | |
err_t | leddriver11_pwm_stop (leddriver11_t *ctx) |
LED Driver 11 stop PWM module. | |
err_t | leddriver11_pwm_start (leddriver11_t *ctx) |
LED Driver 11 start PWM module. | |
This file contains API for LED Driver 11 Click Driver.