Go to the documentation of this file.
38 #include "drv_digital_out.h"
39 #include "drv_digital_in.h"
51 #define POWERRESET_MAP_MIKROBUS( cfg, mikrobus ) \
52 cfg.sta= MIKROBUS( mikrobus, MIKROBUS_PWM ); \
53 cfg.rst= MIKROBUS( mikrobus, MIKROBUS_INT );
60 #define POWERRESET_RETVAL uint8_t
61 #define powerreset_state_t uint8_t
63 #define POWERRESET_OK 0x00
64 #define POWERRESET_INIT_ERROR 0xFF
71 #define POWERRESET_ACTIVE 1
72 #define POWERRESET_INACTIVE 0
162 #endif // _POWERRESET_H_
pin_name_t sta
Definition: powerreset.h:101
#define powerreset_state_t
Definition: powerreset.h:61
POWERRESET_RETVAL powerreset_init(powerreset_t *ctx, powerreset_cfg_t *cfg)
Initialization function.
digital_in_t sta
Definition: powerreset.h:89
powerreset_state_t powerreset_get_rst(powerreset_t *ctx)
Reset Check function.
digital_in_t rst
Definition: powerreset.h:90
Click ctx object definition.
Definition: powerreset.h:85
void powerreset_cfg_setup(powerreset_cfg_t *cfg)
Config Object Initialization function.
pin_name_t rst
Definition: powerreset.h:102
Click configuration structure definition.
Definition: powerreset.h:97
powerreset_state_t powerreset_get_pwr(powerreset_t *ctx)
Power Check function.
#define POWERRESET_RETVAL
Definition: powerreset.h:60