leddriver6 2.0.0.0
|
This file contains API for LED driver 6 Click driver. More...
#include "drv_digital_in.h"
#include "drv_pwm.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | leddriver6_t |
Click ctx object definition. More... | |
struct | leddriver6_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | LEDDRIVER6_MAP_MIKROBUS(cfg, mikrobus) |
#define | LEDDRIVER6_OK 0 |
#define | LEDDRIVER6_INIT_ERROR (-1) |
#define | LEDDRIVER6_DEF_FREQ 10000 |
Functions | |
void | leddriver6_cfg_setup (leddriver6_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | leddriver6_init (leddriver6_t *ctx, leddriver6_cfg_t *cfg) |
Initialization function. | |
err_t | leddriver6_set_duty_cycle (leddriver6_t *ctx, float duty_cycle) |
Sets PWM duty cycle. | |
err_t | leddriver6_pwm_stop (leddriver6_t *ctx) |
Stop PWM module. | |
err_t | leddriver6_pwm_start (leddriver6_t *ctx) |
Start PWM module. | |
err_t | leddriver6_read_adc (leddriver6_t *ctx, uint16_t *data_out) |
Read ADC function. | |
err_t | leddriver6_get_pg_voltage (leddriver6_t *ctx, float *data_out) |
Function for reading current PG output voltage. | |
uint8_t | leddriver6_get_interrupt_state (leddriver6_t *ctx) |
Function for getting interrupt pin state. | |
This file contains API for LED driver 6 Click driver.