signalrelay 2.0.0.0
|
Functions | |
void | signalrelay_cfg_setup (signalrelay_cfg_t *cfg) |
Config Object Initialization function. | |
SIGNALRELAY_RETVAL | signalrelay_init (signalrelay_t *ctx, signalrelay_cfg_t *cfg) |
Initialization function. | |
void | signalrelay_default_cfg (signalrelay_t *ctx) |
Click Default Configuration function. | |
void | signalrelay_relay_state (signalrelay_t *ctx, uint8_t relay, uint8_t state) |
Relays state. | |
void signalrelay_cfg_setup | ( | signalrelay_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void signalrelay_default_cfg | ( | signalrelay_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for SignalRelay click.
SIGNALRELAY_RETVAL signalrelay_init | ( | signalrelay_t * | ctx, |
signalrelay_cfg_t * | cfg ) |
Initialization function.
signalrelay | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void signalrelay_relay_state | ( | signalrelay_t * | ctx, |
uint8_t | relay, | ||
uint8_t | state ) |
Relays state.
ctx | Click object. |
relay | Number of relay (Relay 1/2/3/4) |
state | Relay state (ON or OFF) |