terminal 2.0.0.0
Public function

Functions

void terminal_cfg_setup (terminal_cfg_t *cfg)
 Config Object Initialization function.
 
TERMINAL_RETVAL terminal_init (terminal_t *ctx, terminal_cfg_t *cfg)
 Initialization function.
 
void terminal_set_pin_high (digital_out_t *pin)
 Set pin high function.
 
void terminal_set_pin_low (digital_out_t *pin)
 Set pin low function.
 

Detailed Description

Function Documentation

◆ terminal_cfg_setup()

void terminal_cfg_setup ( terminal_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.

◆ terminal_init()

TERMINAL_RETVAL terminal_init ( terminal_t * ctx,
terminal_cfg_t * cfg )

Initialization function.

Parameters
terminalClick object.
cfgClick configuration structure.

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

◆ terminal_set_pin_high()

void terminal_set_pin_high ( digital_out_t * pin)

Set pin high function.

Parameters
pinOutput pin adress variable.

@description This function sets the output voltage on the specified pin to high.

Note
The pin address should be acquired in the following way: { &click.pin }

◆ terminal_set_pin_low()

void terminal_set_pin_low ( digital_out_t * pin)

Set pin low function.

Parameters
pinOutput pin adress variable.

@description This function sets the output voltage on the specified pin to low.

Note
The pin address should be acquired in the following way: { &click.pin }