shuttle 2.0.0.0
Public function

Functions

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

Detailed Description

Function Documentation

◆ shuttle_cfg_setup()

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

◆ shuttle_init()

SHUTTLE_RETVAL shuttle_init ( shuttle_t * ctx,
shuttle_cfg_t * cfg )

Initialization function.

Parameters
shuttleClick object.
cfgClick configuration structure.

@description 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.

@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 }

◆ shuttle_set_pin_low()

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