irbeacon 2.0.0.0
irbeacon.h File Reference

This file contains API for IR Beacon 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  irbeacon_t
 Click ctx object definition. More...
 
struct  irbeacon_cfg_t
 Click configuration structure definition. More...
 

Macros

#define IRBEACON_MAP_MIKROBUS(cfg, mikrobus)
 
#define IRBEACON_RETVAL   uint8_t
 
#define IRBEACON_OK   0x00
 
#define IRBEACON_INIT_ERROR   0xFF
 
#define IRBEACON_DEF_FREQ   5000
 

Functions

void irbeacon_cfg_setup (irbeacon_cfg_t *cfg)
 Config Object Initialization function.
 
IRBEACON_RETVAL irbeacon_init (irbeacon_t *ctx, irbeacon_cfg_t *cfg)
 Initialization function.
 
void irbeacon_set_duty_cycle (irbeacon_t *ctx, float duty_cycle)
 Generic sets PWM duty cycle.
 
void irbeacon_pwm_stop (irbeacon_t *ctx)
 Stop PWM module.
 
void irbeacon_pwm_start (irbeacon_t *ctx)
 Start PWM module.
 
void irbeacon_enable_mod (irbeacon_t *ctx)
 Enable MOD function.
 
void irbeacon_disable_mod (irbeacon_t *ctx)
 Disable MOD function.
 
void irbeacon_reset_mod (irbeacon_t *ctx)
 Reset MOD function.
 

Detailed Description

This file contains API for IR Beacon Click driver.