42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
65#define LEDFLASH_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.ch_ena = MIKROBUS( mikrobus, MIKROBUS_AN ); \
67 cfg.fls = MIKROBUS( mikrobus, MIKROBUS_RST ); \
68 cfg.tor = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
69 cfg.flg = MIKROBUS( mikrobus, MIKROBUS_INT );
76#define LEDFLASH_RETVAL uint8_t
78#define LEDFLASH_OK 0x00
79#define LEDFLASH_INIT_ERROR 0xFF
#define LEDFLASH_RETVAL
Definition ledflash.h:76
void ledflash_char_supcap_disable(ledflash_t *ctx)
Charge Supercapacitor Disable function.
void ledflash_cfg_setup(ledflash_cfg_t *cfg)
Config Object Initialization function.
LEDFLASH_RETVAL ledflash_init(ledflash_t *ctx, ledflash_cfg_t *cfg)
Initialization function.
void ledflash_char_supcap_enable(ledflash_t *ctx)
Charge Supercapacitor Enable function.
void ledflash_flash_disable(ledflash_t *ctx)
Flash Disable function.
void ledflash_flash_enable(ledflash_t *ctx)
Flash Enable function.
uint8_t ledflash_flash_rdy_flag(ledflash_t *ctx)
Check Flash Ready Flag function.
void ledflash_torch_disable(ledflash_t *ctx)
Torch Disable function.
void ledflash_torch_enable(ledflash_t *ctx)
Torch Enable function.
Click configuration structure definition.
Definition ledflash.h:110
pin_name_t flg
Definition ledflash.h:116
pin_name_t fls
Definition ledflash.h:114
pin_name_t tor
Definition ledflash.h:115
pin_name_t ch_ena
Definition ledflash.h:113
Click ctx object definition.
Definition ledflash.h:93
digital_out_t ch_ena
Definition ledflash.h:96
digital_in_t flg
Definition ledflash.h:102
digital_out_t tor
Definition ledflash.h:98
digital_out_t fls
Definition ledflash.h:97