leddriver13 2.0.0.0
|
This file contains API for LED Driver 13 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 | leddriver13_t |
LED Driver 13 Click driver selector. More... | |
struct | leddriver13_cfg_t |
LED Driver 13 Click configuration object. More... | |
Macros | |
#define | LEDDRIVER13_DEF_FREQ 5000 |
LED Driver 13 default PWM frequency. | |
#define | LEDDRIVER13_FAULT_OCCURS 0 |
#define | LEDDRIVER13_CONDITION_OK 1 |
#define | LEDDRIVER13_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | leddriver13_return_value_t { LEDDRIVER13_OK = 0 , LEDDRIVER13_ERROR = -1 } |
LED Driver 13 Click return value data. More... | |
Functions | |
void | leddriver13_cfg_setup (leddriver13_cfg_t *cfg) |
LED Driver 13 configuration object setup function. | |
err_t | leddriver13_init (leddriver13_t *ctx, leddriver13_cfg_t *cfg) |
LED Driver 13 initialization function. | |
err_t | leddriver13_default_cfg (leddriver13_t *ctx) |
LED Driver 13 default configuration function. | |
err_t | leddriver13_set_duty_cycle (leddriver13_t *ctx, float duty_cycle) |
LED Driver 13 sets PWM duty cycle. | |
err_t | leddriver13_pwm_stop (leddriver13_t *ctx) |
LED Driver 13 stop PWM module. | |
err_t | leddriver13_pwm_start (leddriver13_t *ctx) |
LED Driver 13 start PWM module. | |
err_t | leddriver13_set_enable (leddriver13_t *ctx) |
LED Driver 13 set enable function. | |
err_t | leddriver13_set_disable (leddriver13_t *ctx) |
LED Driver 13 set disable function. | |
uint8_t | leddriver13_get_fault (leddriver13_t *ctx) |
LED Driver 13 get fault function. | |
This file contains API for LED Driver 13 Click Driver.