shuttle  2.0.0.0
Functions
Public function

Functions

void shuttle_cfg_setup (shuttle_cfg_t *cfg)
 Config Object Initialization function. More...
 
SHUTTLE_RETVAL shuttle_init (shuttle_t *ctx, shuttle_cfg_t *cfg)
 Initialization function. More...
 
void shuttle_set_pin_high (digital_out_t *pin)
 Set pin high function. More...
 
void shuttle_set_pin_low (digital_out_t *pin)
 Set pin low function. More...
 

Detailed Description

Function Documentation

◆ shuttle_cfg_setup()

void shuttle_cfg_setup ( shuttle_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.

◆ shuttle_init()

SHUTTLE_RETVAL shuttle_init ( shuttle_t ctx,
shuttle_cfg_t cfg 
)

Initialization function.

Parameters
shuttleClick object.
cfgClick configuration structure.

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

◆ shuttle_set_pin_high()

void shuttle_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 }

◆ shuttle_set_pin_low()

void shuttle_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 }