leddriver4 2.0.0.0
|
This file contains API for LED Driver 4 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | leddriver4_t |
Click ctx object definition. More... | |
struct | leddriver4_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | LEDDRIVER4_MAP_MIKROBUS(cfg, mikrobus) cfg.ctl = MIKROBUS( mikrobus, MIKROBUS_PWM ) |
#define | LEDDRIVER4_RETVAL uint8_t |
#define | LEDDRIVER4_OK 0x00 |
#define | LEDDRIVER4_INIT_ERROR 0xFF |
#define | LEDDRIVER4_DEF_FREQ 5000 |
Functions | |
void | leddriver4_cfg_setup (leddriver4_cfg_t *cfg) |
Config Object Initialization function. | |
LEDDRIVER4_RETVAL | leddriver4_init (leddriver4_t *ctx, leddriver4_cfg_t *cfg) |
Initialization function. | |
void | leddriver4_set_duty_cycle (leddriver4_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
void | leddriver4_pwm_stop (leddriver4_t *ctx) |
Stop PWM module. | |
void | leddriver4_pwm_start (leddriver4_t *ctx) |
Start PWM module. | |
This file contains API for LED Driver 4 Click driver.