grblHAL core  20241107
xbar Struct Reference

#include <crossbar.h>

Data Fields

uint8_t id
 Pin id. More...
 
pin_function_t function
 Pin function. More...
 
pin_group_t group
 Pin group. More...
 
void * port
 Optional pointer to the underlying peripheral or pin specific data. More...
 
const char * description
 Optional pointer to description string. More...
 
uint_fast8_t pin
 Pin number. More...
 
pin_cap_t cap
 Pin capabilities. More...
 
pin_mode_t mode
 Current pin configuration. More...
 
xbar_config_ptr config
 Optional pointer to function for configuring the port. More...
 
xbar_get_value_ptr get_value
 Optional pointer to function to get current port value. More...
 
xbar_set_value_ptr set_value
 Optional pointer to function to set port value. More...
 
xbar_event_ptr on_event
 Not used - might be removed. More...
 

Field Documentation

◆ cap

pin_cap_t cap

Pin capabilities.

◆ config

Optional pointer to function for configuring the port.

◆ description

const char* description

Optional pointer to description string.

◆ function

pin_function_t function

Pin function.

◆ get_value

xbar_get_value_ptr get_value

Optional pointer to function to get current port value.

◆ group

pin_group_t group

Pin group.

◆ id

uint8_t id

Pin id.

◆ mode

pin_mode_t mode

Current pin configuration.

◆ on_event

xbar_event_ptr on_event

Not used - might be removed.

◆ pin

uint_fast8_t pin

Pin number.

◆ port

void* port

Optional pointer to the underlying peripheral or pin specific data.

◆ set_value

xbar_set_value_ptr set_value

Optional pointer to function to set port value.


The documentation for this struct was generated from the following file: