ledflash  2.0.0.0
Data Structures | Macros | Functions
ledflash.h File Reference

This file contains API for LED Flash Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"

Go to the source code of this file.

Data Structures

struct  ledflash_t
 Click ctx object definition. More...
 
struct  ledflash_cfg_t
 Click configuration structure definition. More...
 

Macros

#define LEDFLASH_MAP_MIKROBUS(cfg, mikrobus)
 
#define LEDFLASH_RETVAL   uint8_t
 
#define LEDFLASH_OK   0x00
 
#define LEDFLASH_INIT_ERROR   0xFF
 

Functions

void ledflash_cfg_setup (ledflash_cfg_t *cfg)
 Config Object Initialization function. More...
 
LEDFLASH_RETVAL ledflash_init (ledflash_t *ctx, ledflash_cfg_t *cfg)
 Initialization function. More...
 
void ledflash_char_supcap_enable (ledflash_t *ctx)
 Charge Supercapacitor Enable function. More...
 
void ledflash_flash_enable (ledflash_t *ctx)
 Flash Enable function. More...
 
void ledflash_torch_enable (ledflash_t *ctx)
 Torch Enable function. More...
 
void ledflash_char_supcap_disable (ledflash_t *ctx)
 Charge Supercapacitor Disable function. More...
 
void ledflash_flash_disable (ledflash_t *ctx)
 Flash Disable function. More...
 
void ledflash_torch_disable (ledflash_t *ctx)
 Torch Disable function. More...
 
uint8_t ledflash_flash_rdy_flag (ledflash_t *ctx)
 Check Flash Ready Flag function. More...
 

Detailed Description

This file contains API for LED Flash Click driver.