libpic170x  0.2
Ease of use library for PIC16(L)1705/1709 chips
Public Attributes | List of all members
PinDef Struct Reference

Record to store a collection of registers and masks related to a pin. More...

#include <io_control.h>

Public Attributes

uint8_t pin_pps
 The input PPS that can be used for modules to set this chip as input.
 
volatile unsigned char * out_src_pps_reg
 The output PPS that can set such that the pin act as output for a given module.
 
uint8_t pin_tris_bitmask
 Mask for the pin to use with the referenced tris_reg.
 
volatile unsigned char * tris_reg
 Pointer to the pin's tris register (can be NULL)
 
volatile unsigned char * port_reg
 Pointer to the pin's port register (never NULL)
 
volatile unsigned char * ansel_reg
 Pointer to the pin's analog selection register (can be NULL)
 
volatile unsigned char * latch_reg
 Pointer to the pin's output register (can be NULL)
 

Detailed Description

Record to store a collection of registers and masks related to a pin.

Pin data structure encoding all required data for interacting with a microcontroller's IO pin. Not that any of the pointers can be NULL in case that a certain function of feature is unsupported for the pin!

Definition at line 75 of file io_control.h.


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