Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

Port F access and configuration shortcuts
[PORT - Procedure for parallel port usage]


Defines

#define PPF_HST   (*_ppf[0])
 Port F Pad Control (Hysteresis) Register.
#define PPF_MUX   (*_ppf[1])
 Multiplexer Control Register.
#define PPF_FER   (*_ppf[2])
 Function Enable Registers.
#define PPF_DIR   (*_ppf[3])
 Direction Registers.
#define PPF_INE   (*_ppf[4])
 Input Enable Registers.
#define PPF_POL   (*_ppf[5])
 Polarity Registers.
#define PPF_EDG   (*_ppf[6])
 Interrupt Sensitivity Registers.
#define PPF_RSE   (*_ppf[7])
 Set on Both Edges Registers.
#define PPF_MKA   (*_ppf[8])
 Mask Interrupt A Registers.
#define PPF_MKB   (*_ppf[9])
 Mask Interrupt B Registers.
#define PPF_MSA   (*_ppf[10])
 Mask Interrupt A Set Registers.
#define PPF_MSB   (*_ppf[11])
 Mask Interrupt B Set Registers.
#define PPF_MCA   (*_ppf[12])
 Mask Interrupt A Clear Registers.
#define PPF_MCB   *_ppf[13]
 Mask Interrupt B Clear Registers.
#define PPF_MTA   (*_ppf[14])
 Mask Interrupt A Toggle Registers.
#define PPF_MTB   (*_ppf[15])
 Mask Interrupt B Toggle Registers.
#define PPF_SET   (*_ppf[16])
 GPIO Set Registers. Write 1 to set related bit.
#define PPF_CLR   (*_ppf[17])
 GPIO Clear Registers. Write 1 to clear related bit.
#define PPF_TGL   (*_ppf[18])
 GPIO Toggle Registers. Write 1 to toggle related bit.
#define PPF   (*_ppf[19])
 Port F Data Registers.

Define Documentation

#define PPF   (*_ppf[19])
 

#define PPF_CLR   (*_ppf[17])
 

#define PPF_DIR   (*_ppf[3])
 

For all bits, 0 - Input, 1 - Output

#define PPF_EDG   (*_ppf[6])
 

For all bits, 0 - Level, 1 - Edge

#define PPF_FER   (*_ppf[2])
 

For all bits, 0 - GPIO mode, 1 - Enable peripheral function

#define PPF_HST   (*_ppf[0])
 

These registers configure hysteresis for the PORTx inputs. For each controlled group of pins, b#0 will disable Schmitt triggering (hysteresis), while b#1 will enable it.

#define PPF_INE   (*_ppf[4])
 

For all bits, 0 - Input Buffer Disabled, 1 - Input Buffer Enabled

#define PPF_MCA   (*_ppf[12])
 

For all bits, 1 - Clear

#define PPF_MCB   *_ppf[13]
 

For all bits, 1 - Clear

#define PPF_MKA   (*_ppf[8])
 

For all bits, 1 - Enable, 0 - Disable

#define PPF_MKB   (*_ppf[9])
 

For all bits, 1 - Enable, 0 - Disable

#define PPF_MSA   (*_ppf[10])
 

For all bits, 1 - Set

#define PPF_MSB   (*_ppf[11])
 

For all bits, 1 - Set

#define PPF_MTA   (*_ppf[14])
 

For all bits, 1 - Toggle

#define PPF_MTB   (*_ppf[15])
 

For all bits, 1 - Toggle

#define PPF_MUX   (*_ppf[1])
 

For all bit fields: 0 = Peripheral function, 1 = Alternate peripheral function

#define PPF_POL   (*_ppf[5])
 

For all bits, 0 - Active high or rising edge, 1 - Active low or falling edge

#define PPF_RSE   (*_ppf[7])
 

For all bits when enabled for edge-sensitivity, 0 - Single edge, 1 - Both edges

#define PPF_SET   (*_ppf[16])
 

#define PPF_TGL   (*_ppf[18])
 

footer

otStudio - Library Reference - (C) 2020-23 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0