39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
72#define SHUTTER_STATE_OFF 0
73#define SHUTTER_STATE_ON 1
91#define SHUTTER_MAP_MIKROBUS( cfg, mikrobus ) \
92 cfg.af = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
93 cfg.sht = MIKROBUS( mikrobus, MIKROBUS_AN );
void shutter_cfg_setup(shutter_cfg_t *cfg)
Shutter configuration object setup function.
void shutter_set_shutter(shutter_t *ctx, uint8_t state)
Shutter set shutter function.
void shutter_take_picture(shutter_t *ctx, uint8_t auto_focus)
Shutter take picture function.
void shutter_set_auto_focus(shutter_t *ctx, uint8_t state)
Shutter set auto focus function.
err_t shutter_init(shutter_t *ctx, shutter_cfg_t *cfg)
Shutter initialization function.
shutter_return_value_t
Shutter Click return value data.
Definition shutter.h:125
@ SHUTTER_ERROR
Definition shutter.h:127
@ SHUTTER_OK
Definition shutter.h:126
Shutter Click configuration object.
Definition shutter.h:114
pin_name_t sht
Definition shutter.h:116
pin_name_t af
Definition shutter.h:115
Shutter Click context object.
Definition shutter.h:103
digital_out_t sht
Definition shutter.h:105
digital_out_t af
Definition shutter.h:104