relay2 2.0.0.0
|
Functions | |
void | relay2_cfg_setup (relay2_cfg_t *cfg) |
Config Object Initialization function. | |
RELAY2_RETVAL | relay2_init (relay2_t *ctx, relay2_cfg_t *cfg) |
Initialization function. | |
void | relay2_relay2_control (relay2_t *ctx, uint8_t pin_state) |
relay2_relay2Control | |
void | relay2_relay1_control (relay2_t *ctx, uint8_t pin_state) |
relay2_relay2Control | |
void relay2_cfg_setup | ( | relay2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
RELAY2_RETVAL relay2_init | ( | relay2_t * | ctx, |
relay2_cfg_t * | cfg ) |
Initialization function.
relay2 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void relay2_relay1_control | ( | relay2_t * | ctx, |
uint8_t | pin_state ) |
relay2_relay2Control
pin_state | 1 = On, 0 = off |
@description Controls the Relay 1 pin
void relay2_relay2_control | ( | relay2_t * | ctx, |
uint8_t | pin_state ) |
relay2_relay2Control
pin_state | 1 = On, 0 = off |
@description Controls the Relay 2 pin