5.6.2 Pin Manager with Individual Pull-up
I/O Port Management and Configuration with individual pull-up and Inverted I/O
5.6.2.1 Introduction
The Pin Manager controls the I/O pins that represent the instances of the PORT peripheral registers. Each PORT instance has up to eight I/O pins. The PORTs are named PORTA, PORTB, PORTC, etc.
5.6.2.2 Supported Device Families
AVR® Dx | AVR® Ex | ATtiny | ATmegaXXXX |
5.6.2.3 Required header files:
#include"mcc_generated_files/system/pins.h"
5.6.2.4 Module Documentation
5.6.2.4.1 Pins Driver
Driver Version
Functions
-
void PIN_MANAGER_Initialize ()
GPIO and peripheral I/O initialization.
-
void PD6_DefaultInterruptHandler (void)
Default Interrupt Handler for PD6 pin. This is a predefined interrupt handler to be used together with the PD6_SetInterruptHandler() method. This handler is called every time the PD6 ISR is executed.
-
void PD6_SetInterruptHandler (void(*interruptHandler)(void))
Interrupt Handler Setter for PD6 pin input-sense-config functionality. Allows selecting an interrupt handler for PD6 at application runtime.
-
static void PORTA_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
-
static void PORTA_pin_set_inverted (const uint8_t pin, const bool inverted)
Set port pin inverted mode, Configure pin invert I/O or not.
-
static void PORTA_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
-
static void PORTA_set_port_dir (const uint8_t mask, const enum port_dir dir)
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTA_set_pin_dir (const uint8_t pin, const enum port_dir dir)
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTA_set_port_level (const uint8_t mask, const bool level)
Set port level, Sets output level on the pins defined by the bit mask.
-
static void PORTA_set_pin_level (const uint8_t pin, const bool level)
Set port level, Sets output level on a pin.
-
static void PORTA_toggle_port_level (const uint8_t mask)
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
-
static void PORTA_toggle_pin_level (const uint8_t pin)
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
-
static uint8_t PORTA_get_port_level ()
Get input level on pins, Read the input level on pins connected to a port.
-
static bool PORTA_get_pin_level (const uint8_t pin)
Get level on pin, Reads the level on pins connected to a port.
-
static void PORTA_write_port (const uint8_t value)
Write value to Port, Write directly to the port OUT register.
-
static void PORTB_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
-
static void PORTB_pin_set_inverted (const uint8_t pin, const bool inverted)
Set port pin inverted mode, Configure pin invert I/O or not.
-
static void PORTB_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
-
static void PORTB_set_port_dir (const uint8_t mask, const enum port_dir dir)
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTB_set_pin_dir (const uint8_t pin, const enum port_dir dir)
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTB_set_port_level (const uint8_t mask, const bool level)
Set port level, Sets output level on the pins defined by the bit mask.
-
static void PORTB_set_pin_level (const uint8_t pin, const bool level)
Set port level, Sets output level on a pin.
-
static void PORTB_toggle_port_level (const uint8_t mask)
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
-
static void PORTB_toggle_pin_level (const uint8_t pin)
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
-
static uint8_t PORTB_get_port_level ()
Get input level on pins, Read the input level on pins connected to a port.
-
static bool PORTB_get_pin_level (const uint8_t pin)
Get level on pin, Reads the level on pins connected to a port.
-
static void PORTB_write_port (const uint8_t value)
Write value to Port, Write directly to the port OUT register.
-
static void PORTC_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
-
static void PORTC_pin_set_inverted (const uint8_t pin, const bool inverted)
Set port pin inverted mode, Configure pin invert I/O or not.
-
static void PORTC_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
-
static void PORTC_set_port_dir (const uint8_t mask, const enum port_dir dir)
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTC_set_pin_dir (const uint8_t pin, const enum port_dir dir)
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTC_set_port_level (const uint8_t mask, const bool level)
Set port level, Sets output level on the pins defined by the bit mask.
-
static void PORTC_set_pin_level (const uint8_t pin, const bool level)
Set port level, Sets output level on a pin.
-
static void PORTC_toggle_port_level (const uint8_t mask)
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
-
static void PORTC_toggle_pin_level (const uint8_t pin)
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
-
static uint8_t PORTC_get_port_level ()
Get input level on pins, Read the input level on pins connected to a port.
-
static bool PORTC_get_pin_level (const uint8_t pin)
Get level on pin, Reads the level on pins connected to a port.
-
static void PORTC_write_port (const uint8_t value)
Write value to Port, Write directly to the port OUT register.
-
static void PORTD_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
-
static void PORTD_pin_set_inverted (const uint8_t pin, const bool inverted)
Set port pin inverted mode, Configure pin invert I/O or not.
-
static void PORTD_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
-
static void PORTD_set_port_dir (const uint8_t mask, const enum port_dir dir)
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTD_set_pin_dir (const uint8_t pin, const enum port_dir dir)
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTD_set_port_level (const uint8_t mask, const bool level)
Set port level, Sets output level on the pins defined by the bit mask.
-
static void PORTD_set_pin_level (const uint8_t pin, const bool level)
Set port level, Sets output level on a pin.
-
static void PORTD_toggle_port_level (const uint8_t mask)
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
-
static void PORTD_toggle_pin_level (const uint8_t pin)
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
-
static uint8_t PORTD_get_port_level ()
Get input level on pins, Read the input level on pins connected to a port.
-
static bool PORTD_get_pin_level (const uint8_t pin)
Get level on pin, Reads the level on pins connected to a port.
-
static void PORTD_write_port (const uint8_t value)
Write value to Port, Write directly to the port OUT register.
-
static void PORTE_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
-
static void PORTE_pin_set_inverted (const uint8_t pin, const bool inverted)
Set port pin inverted mode, Configure pin invert I/O or not.
-
static void PORTE_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
-
static void PORTE_set_port_dir (const uint8_t mask, const enum port_dir dir)
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTE_set_pin_dir (const uint8_t pin, const enum port_dir dir)
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTE_set_port_level (const uint8_t mask, const bool level)
Set port level, Sets output level on the pins defined by the bit mask.
-
static void PORTE_set_pin_level (const uint8_t pin, const bool level)
Set port level, Sets output level on a pin.
-
static void PORTE_toggle_port_level (const uint8_t mask)
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
-
static void PORTE_toggle_pin_level (const uint8_t pin)
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
-
static uint8_t PORTE_get_port_level ()
Get input level on pins, Read the input level on pins connected to a port.
-
static bool PORTE_get_pin_level (const uint8_t pin)
Get level on pin, Reads the level on pins connected to a port.
-
static void PORTE_write_port (const uint8_t value)
Write value to Port, Write directly to the port OUT register.
-
static void PORTF_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
-
static void PORTF_pin_set_inverted (const uint8_t pin, const bool inverted)
Set port pin inverted mode, Configure pin invert I/O or not.
-
static void PORTF_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
-
static void PORTF_set_port_dir (const uint8_t mask, const enum port_dir dir)
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTF_set_pin_dir (const uint8_t pin, const enum port_dir dir)
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTF_set_port_level (const uint8_t mask, const bool level)
Set port level, Sets output level on the pins defined by the bit mask.
-
static void PORTF_set_pin_level (const uint8_t pin, const bool level)
Set port level, Sets output level on a pin.
-
static void PORTF_toggle_port_level (const uint8_t mask)
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
-
static void PORTF_toggle_pin_level (const uint8_t pin)
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
-
static uint8_t PORTF_get_port_level ()
Get input level on pins, Read the input level on pins connected to a port.
-
static bool PORTF_get_pin_level (const uint8_t pin)
Get level on pin, Reads the level on pins connected to a port.
-
static void PORTF_write_port (const uint8_t value)
Write value to Port, Write directly to the port OUT register.
Function Documentation
PD6_DefaultInterruptHandler()
void PD6_DefaultInterruptHandler (void )
Default Interrupt Handler for PD6 pin. This is a predefined interrupt handler to be used together with the PD6_SetInterruptHandler() method. This handler is called every time the PD6 ISR is executed.
PIN_MANAGER_Initialize() has been called at least once |
|
none |
PD6_SetInterruptHandler()
void PD6_SetInterruptHandler (void(*)(void) interruptHandler)
Interrupt Handler Setter for PD6 pin input-sense-config functionality. Allows selecting an interrupt handler for PD6 at application runtime.
PIN_MANAGER_Initialize() has been called at least once |
|
none |
Allows selecting an interrupt handler for PD6 at application runtime
PIN_MANAGER_Initialize()
void PIN_MANAGER_Initialize ( )
GPIO and peripheral I/O initialization.
|
none |
PORTA_get_pin_level()
static bool PORTA_get_pin_level (const uint8_t pin)[inline], [static]
Get level on pin, Reads the level on pins connected to a port.
|
none |
PORTA_get_port_level()
static uint8_t PORTA_get_port_level ( )[inline], [static]
Get input level on pins, Read the input level on pins connected to a port.
|
none |
PORTA_pin_set_inverted()
static void PORTA_pin_set_inverted (const uint8_t pin, const bool inverted)[inline], [static]
Set port pin inverted mode, Configure pin invert I/O or not.
|
none |
PORTA_pin_set_isc()
static void PORTA_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)[inline], [static]
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
|
none |
PORTA_set_pin_dir()
static void PORTA_set_pin_dir (const uint8_t pin, const enum port_dir dir)[inline], [static]
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
|
none |
PORTA_set_pin_level()
static void PORTA_set_pin_level (const uint8_t pin, const bool level)[inline], [static]
Set port level, Sets output level on a pin.
|
none |
PORTA_set_pin_pull_mode()
static void PORTA_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)[inline], [static]
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
|
none |
PORTA_set_port_dir()
static void PORTA_set_port_dir (const uint8_t mask, const enum port_dir dir)[inline], [static]
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
|
none |
PORTA_set_port_level()
static void PORTA_set_port_level (const uint8_t mask, const bool level)[inline], [static]
Set port level, Sets output level on the pins defined by the bit mask.
|
none |
PORTA_toggle_pin_level()
static void PORTA_toggle_pin_level (const uint8_t pin)[inline], [static]
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
|
none |
PORTA_toggle_port_level()
static void PORTA_toggle_port_level (const uint8_t mask)[inline], [static]
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
|
none |
PORTA_write_port()
static void PORTA_write_port (const uint8_t value)[inline], [static]
Write value to Port, Write directly to the port OUT register.
|
none |
PORTB_get_pin_level()
static bool PORTB_get_pin_level (const uint8_t pin)[inline], [static]
Get level on pin, Reads the level on pins connected to a port.
|
none |
PORTB_get_port_level()
static uint8_t PORTB_get_port_level ( )[inline], [static]
Get input level on pins, Read the input level on pins connected to a port.
|
none |
PORTB_pin_set_inverted()
static void PORTB_pin_set_inverted (const uint8_t pin, const bool inverted)[inline], [static]
Set port pin inverted mode, Configure pin invert I/O or not.
|
none |
PORTB_pin_set_isc()
static void PORTB_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)[inline], [static]
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
|
none |
PORTB_set_pin_dir()
static void PORTB_set_pin_dir (const uint8_t pin, const enum port_dir dir)[inline], [static]
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
|
none |
PORTB_set_pin_level()
static void PORTB_set_pin_level (const uint8_t pin, const bool level)[inline], [static]
Set port level, Sets output level on a pin.
|
none |
PORTB_set_pin_pull_mode()
static void PORTB_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)[inline], [static]
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
|
none |
PORTB_set_port_dir()
static void PORTB_set_port_dir (const uint8_t mask, const enum port_dir dir)[inline], [static]
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
|
none |
PORTB_set_port_level()
static void PORTB_set_port_level (const uint8_t mask, const bool level)[inline], [static]
Set port level, Sets output level on the pins defined by the bit mask.
|
none |
PORTB_toggle_pin_level()
static void PORTB_toggle_pin_level (const uint8_t pin)[inline], [static]
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
|
none |
PORTB_toggle_port_level()
static void PORTB_toggle_port_level (const uint8_t mask)[inline], [static]
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
|
none |
PORTB_write_port()
static void PORTB_write_port (const uint8_t value)[inline], [static]
Write value to Port, Write directly to the port OUT register.
|
none |
PORTC_get_pin_level()
static bool PORTC_get_pin_level (const uint8_t pin)[inline], [static]
Get level on pin, Reads the level on pins connected to a port.
|
none |
PORTC_get_port_level()
static uint8_t PORTC_get_port_level ( )[inline], [static]
Get input level on pins, Read the input level on pins connected to a port.
|
none |
PORTC_pin_set_inverted()
static void PORTC_pin_set_inverted (const uint8_t pin, const bool inverted)[inline], [static]
Set port pin inverted mode, Configure pin invert I/O or not.
|
none |
PORTC_pin_set_isc()
static void PORTC_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)[inline], [static]
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
|
none |
PORTC_set_pin_dir()
static void PORTC_set_pin_dir (const uint8_t pin, const enum port_dir dir)[inline], [static]
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
|
none |
PORTC_set_pin_level()
static void PORTC_set_pin_level (const uint8_t pin, const bool level)[inline], [static]
Set port level, Sets output level on a pin.
|
none |
PORTC_set_pin_pull_mode()
static void PORTC_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)[inline], [static]
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
|
none |
PORTC_set_port_dir()
static void PORTC_set_port_dir (const uint8_t mask, const enum port_dir dir)[inline], [static]
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
|
none |
PORTC_set_port_level()
static void PORTC_set_port_level (const uint8_t mask, const bool level)[inline], [static]
Set port level, Sets output level on the pins defined by the bit mask.
|
none |
PORTC_toggle_pin_level()
static void PORTC_toggle_pin_level (const uint8_t pin)[inline], [static]
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
|
none |
PORTC_toggle_port_level()
static void PORTC_toggle_port_level (const uint8_t mask)[inline], [static]
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
|
none |
PORTC_write_port()
static void PORTC_write_port (const uint8_t value)[inline], [static]
Write value to Port, Write directly to the port OUT register.
|
none |
PORTD_get_pin_level()
static bool PORTD_get_pin_level (const uint8_t pin)[inline], [static]
Get level on pin, Reads the level on pins connected to a port.
|
none |
PORTD_get_port_level()
static uint8_t PORTD_get_port_level ( )[inline], [static]
Get input level on pins, Read the input level on pins connected to a port.
|
none |
PORTD_pin_set_inverted()
static void PORTD_pin_set_inverted (const uint8_t pin, const bool inverted)[inline], [static]
Set port pin inverted mode, Configure pin invert I/O or not.
|
none |
PORTD_pin_set_isc()
static void PORTD_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)[inline], [static]
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
|
none |
PORTD_set_pin_dir()
static void PORTD_set_pin_dir (const uint8_t pin, const enum port_dir dir)[inline], [static]
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
|
none |
PORTD_set_pin_level()
static void PORTD_set_pin_level (const uint8_t pin, const bool level)[inline], [static]
Set port level, Sets output level on a pin.
|
none |
PORTD_set_pin_pull_mode()
static void PORTD_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)[inline], [static]
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
|
none |
PORTD_set_port_dir()
static void PORTD_set_port_dir (const uint8_t mask, const enum port_dir dir)[inline], [static]
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
|
none |
PORTD_set_port_level()
static void PORTD_set_port_level (const uint8_t mask, const bool level)[inline], [static]
Set port level, Sets output level on the pins defined by the bit mask.
|
none |
PORTD_toggle_pin_level()
static void PORTD_toggle_pin_level (const uint8_t pin)[inline], [static]
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
|
none |
PORTD_toggle_port_level()
static void PORTD_toggle_port_level (const uint8_t mask)[inline], [static]
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
|
none |
PORTD_write_port()
static void PORTD_write_port (const uint8_t value)[inline], [static]
Write value to Port, Write directly to the port OUT register.
|
none |
PORTE_get_pin_level()
static bool PORTE_get_pin_level (const uint8_t pin)[inline], [static]
Get level on pin, Reads the level on pins connected to a port.
|
none |
PORTE_get_port_level()
static uint8_t PORTE_get_port_level ( )[inline], [static]
Get input level on pins, Read the input level on pins connected to a port.
|
none |
PORTE_pin_set_inverted()
static void PORTE_pin_set_inverted (const uint8_t pin, const bool inverted)[inline], [static]
Set port pin inverted mode, Configure pin invert I/O or not.
|
none |
PORTE_pin_set_isc()
static void PORTE_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)[inline], [static]
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
|
none |
PORTE_set_pin_dir()
static void PORTE_set_pin_dir (const uint8_t pin, const enum port_dir dir)[inline], [static]
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
|
none |
PORTE_set_pin_level()
static void PORTE_set_pin_level (const uint8_t pin, const bool level)[inline], [static]
Set port level, Sets output level on a pin.
|
none |
PORTE_set_pin_pull_mode()
static void PORTE_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)[inline], [static]
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
|
none |
PORTE_set_port_dir()
static void PORTE_set_port_dir (const uint8_t mask, const enum port_dir dir)[inline], [static]
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
|
none |
PORTE_set_port_level()
static void PORTE_set_port_level (const uint8_t mask, const bool level)[inline], [static]
Set port level, Sets output level on the pins defined by the bit mask.
|
none |
PORTE_toggle_pin_level()
static void PORTE_toggle_pin_level (const uint8_t pin)[inline], [static]
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
|
none |
PORTE_toggle_port_level()
static void PORTE_toggle_port_level (const uint8_t mask)[inline], [static]
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
|
none |
PORTE_write_port()
static void PORTE_write_port (const uint8_t value)[inline], [static]
Write value to Port, Write directly to the port OUT register.
|
none |
PORTF_get_pin_level()
static bool PORTF_get_pin_level (const uint8_t pin)[inline], [static]
Get level on pin, Reads the level on pins connected to a port.
|
none |
PORTF_get_port_level()
static uint8_t PORTF_get_port_level ( )[inline], [static]
Get input level on pins, Read the input level on pins connected to a port.
|
none |
PORTF_pin_set_inverted()
static void PORTF_pin_set_inverted (const uint8_t pin, const bool inverted)[inline], [static]
Set port pin inverted mode, Configure pin invert I/O or not.
|
none |
PORTF_pin_set_isc()
static void PORTF_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)[inline], [static]
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
|
none |
PORTF_set_pin_dir()
static void PORTF_set_pin_dir (const uint8_t pin, const enum port_dir dir)[inline], [static]
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
|
none |
PORTF_set_pin_level()
static void PORTF_set_pin_level (const uint8_t pin, const bool level)[inline], [static]
Set port level, Sets output level on a pin.
|
none |
PORTF_set_pin_pull_mode()
static void PORTF_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)[inline], [static]
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
|
none |
PORTF_set_port_dir()
static void PORTF_set_port_dir (const uint8_t mask, const enum port_dir dir)[inline], [static]
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
|
none |
PORTF_set_port_level()
static void PORTF_set_port_level (const uint8_t mask, const bool level)[inline], [static]
Set port level, Sets output level on the pins defined by the bit mask.
|
none |
PORTF_toggle_pin_level()
static void PORTF_toggle_pin_level (const uint8_t pin)[inline], [static]
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
|
none |
PORTF_toggle_port_level()
static void PORTF_toggle_port_level (const uint8_t mask)[inline], [static]
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
|
none |
PORTF_write_port()
static void PORTF_write_port (const uint8_t value)[inline], [static]
Write value to Port, Write directly to the port OUT register.
|
none |
5.6.2.5 File Documentation
5.6.2.5.1 source/pins.c File Reference
This is generated driver implementation for pins. This file provides implementations for pin APIs for all pins selected in the GUI.
#include "../pins.h"
Functions
-
void PORT_Initialize (void)
-
void PIN_MANAGER_Initialize ()
GPIO and peripheral I/O initialization.
-
void PD6_SetInterruptHandler (void(*interruptHandler)(void))
Interrupt Handler Setter for PD6 pin input-sense-config functionality. Allows selecting an interrupt handler for PD6 at application runtime.
-
void PD6_DefaultInterruptHandler (void)
Default Interrupt Handler for PD6 pin. This is a predefined interrupt handler to be used together with the PD6_SetInterruptHandler() method. This handler is called every time the PD6 ISR is executed.
-
ISR (PORTA_PORT_vect)
-
ISR (PORTB_PORT_vect)
-
ISR (PORTC_PORT_vect)
-
ISR (PORTD_PORT_vect)
-
ISR (PORTE_PORT_vect)
-
ISR (PORTF_PORT_vect)
Variables
-
static void(* PD6_InterruptHandler )(void)
Detailed Description
This is generated driver implementation for pins. This file provides implementations for pin APIs for all pins selected in the GUI.
Generated Driver File
5.6.2.5.2 source/pins.h File Reference
#include <avr/io.h>
#include "./port.h"
Functions
-
void PIN_MANAGER_Initialize ()
GPIO and peripheral I/O initialization.
-
void PD6_DefaultInterruptHandler (void)
Default Interrupt Handler for PD6 pin. This is a predefined interrupt handler to be used together with the PD6_SetInterruptHandler() method. This handler is called every time the PD6 ISR is executed.
-
void PD6_SetInterruptHandler (void(*interruptHandler)(void))
Interrupt Handler Setter for PD6 pin input-sense-config functionality. Allows selecting an interrupt handler for PD6 at application runtime.
Macros
-
#define IO_PD6_SetHigh() do { PORTD_OUTSET = 0x40; } while(0)
-
#define IO_PD6_SetLow() do { PORTD_OUTCLR = 0x40; } while(0)
-
#define IO_PD6_Toggle() do { PORTD_OUTTGL = 0x40; } while(0)
-
#define IO_PD6_GetValue() (VPORTD.IN & (0x1 << 6))
-
#define IO_PD6_SetDigitalInput() do { PORTD_DIRCLR = 0x40; } while(0)
-
#define IO_PD6_SetDigitalOutput() do { PORTD_DIRSET = 0x40; } while(0)
-
#define IO_PD6_SetPullUp() do { PORTD_PIN6CTRL |= PORT_PULLUPEN_bm; } while(0)
-
#define IO_PD6_ResetPullUp() do { PORTD_PIN6CTRL &= ~PORT_PULLUPEN_bm; } while(0)
-
#define IO_PD6_SetInverted() do { PORTD_PIN6CTRL |= PORT_INVEN_bm; } while(0)
-
#define IO_PD6_ResetInverted() do { PORTD_PIN6CTRL &= ~PORT_INVEN_bm; } while(0)
-
#define IO_PD6_DisableInterruptOnChange() do { PORTD.PIN6CTRL = (PORTD.PIN6CTRL & ~PORT_ISC_gm) | 0x0 ; } while(0)
-
#define IO_PD6_EnableInterruptForBothEdges() do { PORTD.PIN6CTRL = (PORTD.PIN6CTRL & ~PORT_ISC_gm) | 0x1 ; } while(0)
-
#define IO_PD6_EnableInterruptForRisingEdge() do { PORTD.PIN6CTRL = (PORTD.PIN6CTRL & ~PORT_ISC_gm) | 0x2 ; } while(0)
-
#define IO_PD6_EnableInterruptForFallingEdge() do { PORTD.PIN6CTRL = (PORTD.PIN6CTRL & ~PORT_ISC_gm) | 0x3 ; } while(0)
-
#define IO_PD6_DisableDigitalInputBuffer() do { PORTD.PIN6CTRL = (PORTD.PIN6CTRL & ~PORT_ISC_gm) | 0x4 ; } while(0)
-
#define IO_PD6_EnableInterruptForLowLevelSensing() do { PORTD.PIN6CTRL = (PORTD.PIN6CTRL & ~PORT_ISC_gm) | 0x5 ; } while(0)
Detailed Description
Generated Pins header File
5.6.2.5.3 source/port.h File Reference
This Source file provides APIs.
#include "utils/compiler.h"
Functions
-
static void PORTA_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
-
static void PORTA_pin_set_inverted (const uint8_t pin, const bool inverted)
Set port pin inverted mode, Configure pin invert I/O or not.
-
static void PORTA_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
-
static void PORTA_set_port_dir (const uint8_t mask, const enum port_dir dir)
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTA_set_pin_dir (const uint8_t pin, const enum port_dir dir)
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTA_set_port_level (const uint8_t mask, const bool level)
Set port level, Sets output level on the pins defined by the bit mask.
-
static void PORTA_set_pin_level (const uint8_t pin, const bool level)
Set port level, Sets output level on a pin.
-
static void PORTA_toggle_port_level (const uint8_t mask)
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
-
static void PORTA_toggle_pin_level (const uint8_t pin)
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
-
static uint8_t PORTA_get_port_level ()
Get input level on pins, Read the input level on pins connected to a port.
-
static bool PORTA_get_pin_level (const uint8_t pin)
Get level on pin, Reads the level on pins connected to a port.
-
static void PORTA_write_port (const uint8_t value)
Write value to Port, Write directly to the port OUT register.
-
static void PORTB_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
-
static void PORTB_pin_set_inverted (const uint8_t pin, const bool inverted)
Set port pin inverted mode, Configure pin invert I/O or not.
-
static void PORTB_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
-
static void PORTB_set_port_dir (const uint8_t mask, const enum port_dir dir)
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTB_set_pin_dir (const uint8_t pin, const enum port_dir dir)
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTB_set_port_level (const uint8_t mask, const bool level)
Set port level, Sets output level on the pins defined by the bit mask.
-
static void PORTB_set_pin_level (const uint8_t pin, const bool level)
Set port level, Sets output level on a pin.
-
static void PORTB_toggle_port_level (const uint8_t mask)
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
-
static void PORTB_toggle_pin_level (const uint8_t pin)
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
-
static uint8_t PORTB_get_port_level ()
Get input level on pins, Read the input level on pins connected to a port.
-
static bool PORTB_get_pin_level (const uint8_t pin)
Get level on pin, Reads the level on pins connected to a port.
-
static void PORTB_write_port (const uint8_t value)
Write value to Port, Write directly to the port OUT register.
-
static void PORTC_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
-
static void PORTC_pin_set_inverted (const uint8_t pin, const bool inverted)
Set port pin inverted mode, Configure pin invert I/O or not.
-
static void PORTC_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
-
static void PORTC_set_port_dir (const uint8_t mask, const enum port_dir dir)
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTC_set_pin_dir (const uint8_t pin, const enum port_dir dir)
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTC_set_port_level (const uint8_t mask, const bool level)
Set port level, Sets output level on the pins defined by the bit mask.
-
static void PORTC_set_pin_level (const uint8_t pin, const bool level)
Set port level, Sets output level on a pin.
-
static void PORTC_toggle_port_level (const uint8_t mask)
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
-
static void PORTC_toggle_pin_level (const uint8_t pin)
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
-
static uint8_t PORTC_get_port_level ()
Get input level on pins, Read the input level on pins connected to a port.
-
static bool PORTC_get_pin_level (const uint8_t pin)
Get level on pin, Reads the level on pins connected to a port.
-
static void PORTC_write_port (const uint8_t value)
Write value to Port, Write directly to the port OUT register.
-
static void PORTD_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
-
static void PORTD_pin_set_inverted (const uint8_t pin, const bool inverted)
Set port pin inverted mode, Configure pin invert I/O or not.
-
static void PORTD_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
-
static void PORTD_set_port_dir (const uint8_t mask, const enum port_dir dir)
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTD_set_pin_dir (const uint8_t pin, const enum port_dir dir)
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTD_set_port_level (const uint8_t mask, const bool level)
Set port level, Sets output level on the pins defined by the bit mask.
-
static void PORTD_set_pin_level (const uint8_t pin, const bool level)
Set port level, Sets output level on a pin.
-
static void PORTD_toggle_port_level (const uint8_t mask)
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
-
static void PORTD_toggle_pin_level (const uint8_t pin)
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
-
static uint8_t PORTD_get_port_level ()
Get input level on pins, Read the input level on pins connected to a port.
-
static bool PORTD_get_pin_level (const uint8_t pin)
Get level on pin, Reads the level on pins connected to a port.
-
static void PORTD_write_port (const uint8_t value)
Write value to Port, Write directly to the port OUT register.
-
static void PORTE_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
-
static void PORTE_pin_set_inverted (const uint8_t pin, const bool inverted)
Set port pin inverted mode, Configure pin invert I/O or not.
-
static void PORTE_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
-
static void PORTE_set_port_dir (const uint8_t mask, const enum port_dir dir)
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTE_set_pin_dir (const uint8_t pin, const enum port_dir dir)
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTE_set_port_level (const uint8_t mask, const bool level)
Set port level, Sets output level on the pins defined by the bit mask.
-
static void PORTE_set_pin_level (const uint8_t pin, const bool level)
Set port level, Sets output level on a pin.
-
static void PORTE_toggle_port_level (const uint8_t mask)
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
-
static void PORTE_toggle_pin_level (const uint8_t pin)
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
-
static uint8_t PORTE_get_port_level ()
Get input level on pins, Read the input level on pins connected to a port.
-
static bool PORTE_get_pin_level (const uint8_t pin)
Get level on pin, Reads the level on pins connected to a port.
-
static void PORTE_write_port (const uint8_t value)
Write value to Port, Write directly to the port OUT register.
-
static void PORTF_set_pin_pull_mode (const uint8_t pin, const enum port_pull_mode pull_mode)
Set port pin pull mode, Configure pin to pull up, down or disable pull mode, supported pull modes are defined by device used.
-
static void PORTF_pin_set_inverted (const uint8_t pin, const bool inverted)
Set port pin inverted mode, Configure pin invert I/O or not.
-
static void PORTF_pin_set_isc (const uint8_t pin, const PORT_ISC_t isc)
Set port pin input/sense configuration, Enable/disable digital input buffer and pin change interrupt, select pin interrupt edge/level sensing mode.
-
static void PORTF_set_port_dir (const uint8_t mask, const enum port_dir dir)
Set port data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTF_set_pin_dir (const uint8_t pin, const enum port_dir dir)
Set port pin data direction, Select if the pin data direction is input, output or disabled. If disabled state is not possible, this function throws an assert.
-
static void PORTF_set_port_level (const uint8_t mask, const bool level)
Set port level, Sets output level on the pins defined by the bit mask.
-
static void PORTF_set_pin_level (const uint8_t pin, const bool level)
Set port level, Sets output level on a pin.
-
static void PORTF_toggle_port_level (const uint8_t mask)
Toggle out level on pins, Toggle the pin levels on pins defined by bit mask.
-
static void PORTF_toggle_pin_level (const uint8_t pin)
Toggle output level on pin, Toggle the pin levels on pins defined by bit mask.
-
static uint8_t PORTF_get_port_level ()
Get input level on pins, Read the input level on pins connected to a port.
-
static bool PORTF_get_pin_level (const uint8_t pin)
Get level on pin, Reads the level on pins connected to a port.
-
static void PORTF_write_port (const uint8_t value)
Write value to Port, Write directly to the port OUT register.
Enumerations
-
enum port_pull_mode { PORT_PULL_OFF, PORT_PULL_UP }
-
enum port_dir { PORT_DIR_IN, PORT_DIR_OUT, PORT_DIR_OFF }
Detailed Description
This Source file provides APIs.
Generated Ports header File