leddriver 2.0.0.0
|
This file contains API for LED DRIVER 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 | leddriver_t |
Click ctx object definition. More... | |
struct | leddriver_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | LEDDRIVER_MAP_MIKROBUS(cfg, mikrobus) cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM ) |
#define | LEDDRIVER_RETVAL uint8_t |
#define | LEDDRIVER_OK 0x00 |
#define | LEDDRIVER_INIT_ERROR 0xFF |
#define | LEDDRIVER_FREQ_ERROR 0xFE |
#define | LEDDRIVER_DEF_FREQ 10000 |
Functions | |
void | leddriver_cfg_setup (leddriver_cfg_t *cfg) |
Config Object Initialization function. | |
LEDDRIVER_RETVAL | leddriver_init (leddriver_t *ctx, leddriver_cfg_t *cfg) |
Initialization function. | |
uint16_t | leddriver_get_pwm_max_duty (leddriver_t *ctx) |
Get Max PWM Duty Cycle function. | |
err_t | leddriver_set_duty_cycle (leddriver_t *ctx, float duty_cycle) |
Generic sets PWM duty cycle. | |
err_t | leddriver_pwm_stop (leddriver_t *ctx) |
Stop PWM module. | |
err_t | leddriver_pwm_start (leddriver_t *ctx) |
Start PWM module. | |
This file contains API for LED DRIVER Click driver.