terminal  2.0.0.0
Functions
Public function

Functions

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

Detailed Description

Function Documentation

◆ terminal_cfg_setup()

void terminal_cfg_setup ( terminal_cfg_t cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

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.

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.

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.

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 }