relay2 2.0.0.0
Public function

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
 

Detailed Description

Function Documentation

◆ relay2_cfg_setup()

void relay2_cfg_setup ( relay2_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ relay2_init()

RELAY2_RETVAL relay2_init ( relay2_t * ctx,
relay2_cfg_t * cfg )

Initialization function.

Parameters
relay2Click object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ relay2_relay1_control()

void relay2_relay1_control ( relay2_t * ctx,
uint8_t pin_state )

relay2_relay2Control

Parameters
pin_state1 = On, 0 = off

@description Controls the Relay 1 pin

◆ relay2_relay2_control()

void relay2_relay2_control ( relay2_t * ctx,
uint8_t pin_state )

relay2_relay2Control

Parameters
pin_state1 = On, 0 = off

@description Controls the Relay 2 pin