grblHAL core  20241107
io_port_t Struct Reference

Properties and handlers for auxiliary digital and analog I/O. More...

#include <ioports.h>

Data Fields

uint8_t num_digital_in
 Number of digital inputs available. More...
 
uint8_t num_digital_out
 Number of digital outputs available. More...
 
uint8_t num_analog_in
 Number of analog inputs available. More...
 
uint8_t num_analog_out
 Number of analog outputs available. More...
 
digital_out_ptr digital_out
 Optional handler for setting a digital output. More...
 
analog_out_ptr analog_out
 Optional handler for setting an analog output. More...
 
wait_on_input_ptr wait_on_input
 Optional handler for reading a digital or analog input. More...
 
set_pin_description_ptr set_pin_description
 Optional handler for setting a description of an auxiliary pin. More...
 
get_pin_info_ptr get_pin_info
 Optional handler for getting information about an auxiliary pin. More...
 
claim_port_ptr claim
 Optional handler for claiming an auxiliary pin for exclusive use. More...
 
swap_pins_ptr swap_pins
 Optional handler for swapping pins. More...
 
ioport_register_interrupt_handler_ptr register_interrupt_handler
 

Detailed Description

Properties and handlers for auxiliary digital and analog I/O.

Field Documentation

◆ analog_out

analog_out_ptr analog_out

Optional handler for setting an analog output.

◆ claim

Optional handler for claiming an auxiliary pin for exclusive use.

◆ digital_out

digital_out_ptr digital_out

Optional handler for setting a digital output.

◆ get_pin_info

get_pin_info_ptr get_pin_info

Optional handler for getting information about an auxiliary pin.

◆ num_analog_in

uint8_t num_analog_in

Number of analog inputs available.

◆ num_analog_out

uint8_t num_analog_out

Number of analog outputs available.

◆ num_digital_in

uint8_t num_digital_in

Number of digital inputs available.

◆ num_digital_out

uint8_t num_digital_out

Number of digital outputs available.

◆ register_interrupt_handler

ioport_register_interrupt_handler_ptr register_interrupt_handler

◆ set_pin_description

set_pin_description_ptr set_pin_description

Optional handler for setting a description of an auxiliary pin.

◆ swap_pins

swap_pins_ptr swap_pins

Optional handler for swapping pins.

◆ wait_on_input

wait_on_input_ptr wait_on_input

Optional handler for reading a digital or analog input.


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