relay 2.0.0.0
|
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. | |
void relay_cfg_setup | ( | relay_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void relay_default_cfg | ( | relay_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Relay click.
RELAY_RETVAL relay_init | ( | relay_t * | ctx, |
relay_cfg_t * | cfg ) |
Initialization function.
relay | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void relay_set_state | ( | relay_t * | ctx, |
uint8_t | relay, | ||
uint8_t | state ) |
Relay set state.
ctx | Click object. |
relay | Number of relay (RELAY_NUM_1 or RELAY_NUM_2). |
state | Relay state (RELAY_STATE_ON or RELAY_STATE_OFF). |
@description With this function you can control relays.