oled 1.0
OLED Graphics Control Library
|
Macro definitions for port operations. More...
Go to the source code of this file.
Macros | |
#define | SET_PIN(NUMBER, ARGUMENT) |
Concatenates pin identifier components into a full pin name. | |
#define | SET_PORT(NAME, ARGUMENT) |
Concatenates port identifier components into a full port name. |
Macro definitions for port operations.
This header file contains essential macros for handling port and pin names.
#define SET_PIN | ( | NUMBER, | |
ARGUMENT ) |
Concatenates pin identifier components into a full pin name.
This macro concatenates the token PIN, the given pin NUMBER, and the specified ARGUMENT to form a complete pin identifier.
For example, SET_PIN(3, _CTRL) expands to PIN3_CTRL.
This is useful for handling pin-related registers or bitfields in a flexible and generic way within embedded code.
#define SET_PORT | ( | NAME, | |
ARGUMENT ) |
Concatenates port identifier components into a full port name.
This macro concatenates the token PORT, the given port NAME, and the specified ARGUMENT to form a complete port identifier.
For example, SET_PORT(A, .DIR) expands to PORTA.DIR.
This is useful for handling port-related registers or bitfields in a flexible and generic way within embedded code.