relay3 2.0.0.0
|
This file contains API for Relay 3 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | relay3_t |
Click ctx object definition. More... | |
struct | relay3_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | RELAY3_MAP_MIKROBUS(cfg, mikrobus) |
#define | RELAY3_RETVAL uint8_t |
#define | RELAY3_OK 0x00 |
#define | RELAY3_INIT_ERROR 0xFF |
#define | RELAY3_RELAY_1 0x01 |
#define | RELAY3_RELAY_2 0x02 |
#define | RELAY3_BOTH_RELAYS 0x03 |
#define | RELAY3_SECONDS 0x00 |
#define | RELAY3_MILISECONDS 0x01 |
Functions | |
void | relay3_cfg_setup (relay3_cfg_t *cfg) |
Config Object Initialization function. | |
RELAY3_RETVAL | relay3_init (relay3_t *ctx, relay3_cfg_t *cfg) |
Initialization function. | |
void | relay3_relay_on (relay3_t *ctx, uint8_t relay) |
Relay on function. | |
void | relay3_relay_off (relay3_t *ctx, uint8_t relay) |
Relay off function. | |
void | relay3_on_delay (relay3_t *ctx, uint8_t relay, uint8_t units, uint16_t time) |
Relay on with delay function. | |
This file contains API for Relay 3 Click driver.