leddriver5 2.0.0.0
|
This file contains API for Led Driver 5 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 | leddriver5_t |
Click ctx object definition. More... | |
struct | leddriver5_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | LEDDRIVER5_MAP_MIKROBUS(cfg, mikrobus) |
#define | LEDDRIVER5_RETVAL uint8_t |
#define | LEDDRIVER5_OK 0x00 |
#define | LEDDRIVER5_INIT_ERROR 0xFF |
#define | LEDDRIVER5_DEF_FREQ 5000 |
Functions | |
void | leddriver5_cfg_setup (leddriver5_cfg_t *cfg) |
Config Object Initialization function. | |
LEDDRIVER5_RETVAL | leddriver5_init (leddriver5_t *ctx, leddriver5_cfg_t *cfg) |
Initialization function. | |
void | leddriver5_default_cfg (leddriver5_t *ctx) |
Click Default Configuration function. | |
void | leddriver5_set_duty_cycle (leddriver5_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
void | leddriver5_pwm_stop (leddriver5_t *ctx) |
Stop PWM module. | |
void | leddriver5_pwm_start (leddriver5_t *ctx) |
Start PWM module. | |
This file contains API for Led Driver 5 Click driver.