irbeacon 2.0.0.0
|
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. | |
void irbeacon_cfg_setup | ( | irbeacon_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void irbeacon_disable_mod | ( | irbeacon_t * | ctx | ) |
Disable MOD function.
ctx | Click object. |
@description Function disables the device by clearing MOD pin.
void irbeacon_enable_mod | ( | irbeacon_t * | ctx | ) |
Enable MOD function.
ctx | Click object. |
@description Function enables the device by seting MOD pin.
IRBEACON_RETVAL irbeacon_init | ( | irbeacon_t * | ctx, |
irbeacon_cfg_t * | cfg ) |
Initialization function.
irbeacon | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void irbeacon_pwm_start | ( | irbeacon_t * | ctx | ) |
Start PWM module.
ctx | Click object. |
@description This function starts PWM module.
void irbeacon_pwm_stop | ( | irbeacon_t * | ctx | ) |
Stop PWM module.
ctx | Click object. |
@description This function stops PWM module.
void irbeacon_reset_mod | ( | irbeacon_t * | ctx | ) |
Reset MOD function.
ctx | Click object. |
@description Function resets the device.
void irbeacon_set_duty_cycle | ( | irbeacon_t * | ctx, |
float | duty_cycle ) |
Generic sets PWM duty cycle.
ctx | Click object. |
duty_cycle | Duty cycle. |
@description This function sets the PWM duty cycle.