Go to the documentation of this file.
42 #ifdef PREINIT_SUPPORTED
46 #ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52 #include "drv_digital_out.h"
64 #define OPTO4_MAP_MIKROBUS( cfg, mikrobus ) \
65 cfg.cs= MIKROBUS( mikrobus, MIKROBUS_CS ); \
72 #define OPTO4_RETVAL uint8_t
75 #define OPTO4_INIT_ERROR 0xFF
82 #define OPTO4_OUTPUT_ENABLE 0x01
83 #define OPTO4_OUTPUT_DISABLE 0x00
OPTO4_RETVAL opto4_init(opto4_t *ctx, opto4_cfg_t *cfg)
Initialization function.
#define OPTO4_RETVAL
Definition: opto4.h:72
void opto4_cfg_setup(opto4_cfg_t *cfg)
Config Object Initialization function.
digital_out_t cs
Definition: opto4.h:100
Click ctx object definition.
Definition: opto4.h:97
Click configuration structure definition.
Definition: opto4.h:108
void opto4_output_enable(opto4_t *ctx, uint8_t enable)
Function for output enable or disable.
pin_name_t cs
Definition: opto4.h:111
void opto4_default_cfg(opto4_t *ctx)
Click Default Configuration function.