relay 2.0.0.0
|
This file contains API for Relay Click driver. More...
#include "drv_digital_out.h"
Go to the source code of this file.
Data Structures | |
struct | relay_t |
Click ctx object definition. More... | |
struct | relay_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | RELAY_MAP_MIKROBUS(cfg, mikrobus) |
#define | RELAY_RETVAL uint8_t |
#define | RELAY_OK 0x00 |
#define | RELAY_INIT_ERROR 0xFF |
#define | RELAY_STATE_ON 1 |
#define | RELAY_STATE_OFF 0 |
#define | RELAY_NUM_1 1 |
#define | RELAY_NUM_2 2 |
Functions | |
void | relay_cfg_setup (relay_cfg_t *cfg) |
Config Object Initialization function. | |
RELAY_RETVAL | relay_init (relay_t *ctx, relay_cfg_t *cfg) |
Initialization function. | |
void | relay_default_cfg (relay_t *ctx) |
Click Default Configuration function. | |
void | relay_set_state (relay_t *ctx, uint8_t relay, uint8_t state) |
Relay set state. | |
This file contains API for Relay Click driver.