leddriver2 2.0.0.0
leddriver2.h File Reference

This file contains API for LED Driver 2 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  leddriver2_t
 Click ctx object definition. More...
 
struct  leddriver2_cfg_t
 Click configuration structure definition. More...
 

Macros

#define LEDDRIVER2_MAP_MIKROBUS(cfg, mikrobus)    cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM );
 
#define LEDDRIVER2_RETVAL   uint8_t
 
#define LEDDRIVER2_OK   0x00
 
#define LEDDRIVER2_INIT_ERROR   0xFF
 
#define LEDDRIVER2_DEF_FREQ   2000
 

Functions

void leddriver2_cfg_setup (leddriver2_cfg_t *cfg)
 Config Object Initialization function.
 
LEDDRIVER2_RETVAL leddriver2_init (leddriver2_t *ctx, leddriver2_cfg_t *cfg)
 Initialization function.
 
void leddriver2_set_duty_cycle (leddriver2_t *ctx, float duty_cycle)
 Generic sets PWM duty cycle.
 
void leddriver2_pwm_stop (leddriver2_t *ctx)
 Stop PWM module.
 
void leddriver2_pwm_start (leddriver2_t *ctx)
 Start PWM module.
 

Detailed Description

This file contains API for LED Driver 2 Click driver.