relay3 2.0.0.0
|
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. | |
void relay3_cfg_setup | ( | relay3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
RELAY3_RETVAL relay3_init | ( | relay3_t * | ctx, |
relay3_cfg_t * | cfg ) |
Initialization function.
relay3 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void relay3_on_delay | ( | relay3_t * | ctx, |
uint8_t | relay, | ||
uint8_t | units, | ||
uint16_t | time ) |
Relay on with delay function.
Relay off with delay function.
cfg | Click configuration structure. |
relay | Relay choice (1/2). |
units | Unit variable (ms/s). |
time | Delay duration variable. |
@description This function turns on one of the relays after the delay time passes.
cfg | Click configuration structure. |
relay | Relay choice (1/2). |
units | Unit variable (ms/s). |
time | Delay duration variable. |
@description This function turns off one of the relays after the delay time passes.
void relay3_relay_off | ( | relay3_t * | ctx, |
uint8_t | relay ) |
Relay off function.
cfg | Click configuration structure. |
relay | Relay choice (1/2). |
@description This function turns off either the 1st or the 2nd relay on the click.
void relay3_relay_on | ( | relay3_t * | ctx, |
uint8_t | relay ) |
Relay on function.
cfg | Click configuration structure. |
relay | Relay choice (1/2). |
@description This function turns on either the 1st or the 2nd relay on the click.