63 #define PIN_INPUT_MODE_DIGITAL 0 64 #define PIN_INPUT_MODE_ANALOG 1 volatile unsigned char * tris_reg
Pointer to the pin's tris register (can be NULL)
const PinDef * PIN_RA0
PIN_RA0 defintion.
const PinDef * PIN_RA5
PIN_RA5 defintion.
const PinDef * PIN_RC0
PIN_RC0 defintion.
const PinDef * PIN_RB5
PIN_RB5 defintion.
volatile unsigned char * port_reg
Pointer to the pin's port register (never NULL)
void pin_set_output(const PinDef *def, bool on)
const PinDef * PIN_RA2
PIN_RA2 defintion.
uint8_t pin_pps
The input PPS that can be used for modules to set this chip as input.
const PinDef * PIN_RC4
PIN_RC4 defintion.
Record to store a collection of registers and masks related to a pin.
volatile unsigned char * latch_reg
Pointer to the pin's output register (can be NULL)
const PinDef * PIN_RC1
PIN_RC1 defintion.
const PinDef * PIN_RC2
PIN_RC2 defintion.
const PinDef * PIN_RB6
PIN_RB6 defintion.
volatile unsigned char * out_src_pps_reg
The output PPS that can set such that the pin act as output for a given module.
const PinDef * PIN_RC6
PIN_RC6 defintion.
void pin_set_pin_mode(const PinDef *def, bool output)
bool pin_get_input(const PinDef *def)
const PinDef * PIN_RB7
PIN_RB7 defintion.
const PinDef * PIN_RA4
PIN_RA4 defintion.
const PinDef * PIN_RA1
PIN_RA1 defintion.
const PinDef * PIN_RC5
PIN_RC5 defintion.
const PinDef * PIN_RA3
PIN_RA3 defintion.
void pin_set_input_mode(const PinDef *def, uint8_t input_mode)
const PinDef * PIN_RC7
PIN_RC7 defintion.
volatile unsigned char * ansel_reg
Pointer to the pin's analog selection register (can be NULL)
uint8_t pin_tris_bitmask
Mask for the pin to use with the referenced tris_reg.
const PinDef * PIN_RB4
PIN_RB4 defintion.
const PinDef * PIN_RC3
PIN_RC3 defintion.