terminal2 2.0.0.0
terminal2.h File Reference

This file contains API for Terminal 2 Click Driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"

Go to the source code of this file.

Data Structures

struct  terminal2_t
 Terminal 2 Click context object. More...
 
struct  terminal2_cfg_t
 Terminal 2 Click configuration object. More...
 

Macros

#define TERMINAL2_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  terminal2_return_value_t { TERMINAL2_OK = 0 , TERMINAL2_ERROR = -1 }
 Terminal 2 Click return value data. More...
 

Functions

void terminal2_cfg_setup (terminal2_cfg_t *cfg)
 Terminal 2 configuration object setup function.
 
err_t terminal2_init (terminal2_t *ctx, terminal2_cfg_t *cfg)
 Terminal 2 initialization function.
 
void terminal2_set_pin_high (digital_out_t *pin)
 Terminal 2 set pin high function.
 
void terminal2_set_pin_low (digital_out_t *pin)
 Terminal 2 set pin low function.
 
void terminal2_toggle_pin (digital_out_t *pin)
 Terminal 2 toggle pin function.
 
void terminal2_set_all_pins_high (terminal2_t *ctx)
 Terminal 2 set all pins high function.
 
void terminal2_set_all_pins_low (terminal2_t *ctx)
 Terminal 2 set all pins low function.
 
void terminal2_toggle_all_pins (terminal2_t *ctx)
 Terminal 2 toggle all pins function.
 

Detailed Description

This file contains API for Terminal 2 Click Driver.

Enumeration Type Documentation

◆ terminal2_return_value_t

Terminal 2 Click return value data.

Predefined enum values for driver return values.

Enumerator
TERMINAL2_OK 
TERMINAL2_ERROR