enum IGPIO.Bit0_t |
![](../../../../../Arrow_up.png) |
GPIO Bit 0 Definitions
enum Bit0_t {
BIT0_OFF,
BIT0
};
enum IGPIO.Bit1_t |
![](../../../../../Arrow_up.png) |
enum Bit1_t {
BIT1_OFF,
BIT1
};
enum IGPIO.Bit2_t |
![](../../../../../Arrow_up.png) |
enum Bit2_t {
BIT2_OFF,
BIT2
};
enum IGPIO.Bit3_t |
![](../../../../../Arrow_up.png) |
enum Bit3_t {
BIT3_OFF,
BIT3
};
enum IGPIO.Bit4_t |
![](../../../../../Arrow_up.png) |
enum Bit4_t {
BIT4_OFF,
BIT4
};
enum IGPIO.Bit5_t |
![](../../../../../Arrow_up.png) |
enum Bit5_t {
BIT5_OFF,
BIT5
};
enum IGPIO.Bit6_t |
![](../../../../../Arrow_up.png) |
enum Bit6_t {
BIT6_OFF,
BIT6
};
enum IGPIO.Bit7_t |
![](../../../../../Arrow_up.png) |
enum Bit7_t {
BIT7_OFF,
BIT7
};
typedef IGPIO.IPeripheralArray |
![](../../../../../Arrow_up.png) |
typedef IGPIO.StringArray |
![](../../../../../Arrow_up.png) |
typedef String StringArray[];
struct IGPIO.DevicePinFunction_t |
![](../../../../../Arrow_up.png) |
Type to describe how a device pin is configured for all its
different uses that are possible. The function names are consolidated
in one String array rather than located together with the function-
specific data to allow easier access by Grace widgets. The functionConfig
member contains an arbitrary-length array describing all register
settings that need to be performed to configure a certain function
metaonly struct DevicePinFunction_t {
String functionName[];
};
SEE
struct IGPIO.DevicePinSetting_t |
![](../../../../../Arrow_up.png) |
Type to store the selected pin configuration and a reference
to the object that last modified the configuration
metaonly struct DevicePinSetting_t {
UInt pinConfig;
};
SEE
struct IGPIO.DevicePin_t |
![](../../../../../Arrow_up.png) |
Type to describe a single device pin and all its possible
configurations
metaonly struct DevicePin_t {
String pinName;
};
SEE
struct IGPIO.DeviceRegisterConfig_t |
![](../../../../../Arrow_up.png) |
Type to describe how a register is configured for a particular
use. The type allows setting and clearing of an arbitrary bit
pattern inside the specified register
metaonly struct DeviceRegisterConfig_t {
String register;
UInt bitSetMask;
UInt bitClearMask;
};
SEE
struct IGPIO.GpioBits8PxDir_t |
![](../../../../../Arrow_up.png) |
Generic GPIO 8-bit PxDIR register
metaonly struct GpioBits8PxDir_t {
// GPIO Select Direction Bit 0
Bit = 0: The port pin is switched to input direction
Bit = 1: The port pin is switched to output direction
// GPIO Select Direction Bit 1
Bit = 0: The port pin is switched to input direction
Bit = 1: The port pin is switched to output direction
// GPIO Select Direction Bit 2
Bit = 0: The port pin is switched to input direction
Bit = 1: The port pin is switched to output direction
// GPIO Select Direction Bit 3
Bit = 0: The port pin is switched to input direction
Bit = 1: The port pin is switched to output direction
// GPIO Select Direction Bit 4
Bit = 0: The port pin is switched to input direction
Bit = 1: The port pin is switched to output direction
// GPIO Select Direction Bit 5
Bit = 0: The port pin is switched to input direction
Bit = 1: The port pin is switched to output direction
// GPIO Select Direction Bit 6
Bit = 0: The port pin is switched to input direction
Bit = 1: The port pin is switched to output direction
// GPIO Select Direction Bit 7
Bit = 0: The port pin is switched to input direction
Bit = 1: The port pin is switched to output direction
};
SEE
struct IGPIO.GpioBits8PxIe_t |
![](../../../../../Arrow_up.png) |
Generic GPIO 8-bit PxIE register
metaonly struct GpioBits8PxIe_t {
// GPIO Interrupt Enable Bit 0
Bit = 0: The interrupt is disabled.
Bit = 1: The interrupt is enabled
// GPIO Interrupt Enable Bit 1
Bit = 0: The interrupt is disabled.
Bit = 1: The interrupt is enabled
// GPIO Interrupt Enable Bit 2
Bit = 0: The interrupt is disabled.
Bit = 1: The interrupt is enabled
// GPIO Interrupt Enable Bit 3
Bit = 0: The interrupt is disabled.
Bit = 1: The interrupt is enabled
// GPIO Interrupt Enable Bit 4
Bit = 0: The interrupt is disabled.
Bit = 1: The interrupt is enabled
// GPIO Interrupt Enable Bit 5
Bit = 0: The interrupt is disabled.
Bit = 1: The interrupt is enabled
// GPIO Interrupt Enable Bit 6
Bit = 0: The interrupt is disabled.
Bit = 1: The interrupt is enabled
// GPIO Interrupt Enable Bit 7
Bit = 0: The interrupt is disabled.
Bit = 1: The interrupt is enabled
};
SEE
struct IGPIO.GpioBits8PxIes_t |
![](../../../../../Arrow_up.png) |
Generic GPIO 8-bit PxIES register
metaonly struct GpioBits8PxIes_t {
// GPIO Select Interrupt Edge Bit 0
Bit = 0: The PxIFGx flag is set with a low-to-high transition
Bit = 1: The PxIFGx flag is set with a high-to-low transition
// GPIO Select Interrupt Edge Bit 1
Bit = 0: The PxIFGx flag is set with a low-to-high transition
Bit = 1: The PxIFGx flag is set with a high-to-low transition
// GPIO Select Interrupt Edge Bit 2
Bit = 0: The PxIFGx flag is set with a low-to-high transition
Bit = 1: The PxIFGx flag is set with a high-to-low transition
// GPIO Select Interrupt Edge Bit 3
Bit = 0: The PxIFGx flag is set with a low-to-high transition
Bit = 1: The PxIFGx flag is set with a high-to-low transition
// GPIO Select Interrupt Edge Bit 4
Bit = 0: The PxIFGx flag is set with a low-to-high transition
Bit = 1: The PxIFGx flag is set with a high-to-low transition
// GPIO Select Interrupt Edge Bit 5
Bit = 0: The PxIFGx flag is set with a low-to-high transition
Bit = 1: The PxIFGx flag is set with a high-to-low transition
// GPIO Select Interrupt Edge Bit 6
Bit = 0: The PxIFGx flag is set with a low-to-high transition
Bit = 1: The PxIFGx flag is set with a high-to-low transition
// GPIO Select Interrupt Edge Bit 7
Bit = 0: The PxIFGx flag is set with a low-to-high transition
Bit = 1: The PxIFGx flag is set with a high-to-low transition
};
SEE
struct IGPIO.GpioBits8PxIfg_t |
![](../../../../../Arrow_up.png) |
Generic GPIO 8-bit PxIFG register
metaonly struct GpioBits8PxIfg_t {
// GPIO Interrupt Flag Bit 0
Bit = 0: No interrupt is pending
Bit = 1: An interrupt is pending
// GPIO Interrupt Flag Bit 1
Bit = 0: No interrupt is pending
Bit = 1: An interrupt is pending
// GPIO Interrupt Flag Bit 2
Bit = 0: No interrupt is pending
Bit = 1: An interrupt is pending
// GPIO Interrupt Flag Bit 3
Bit = 0: No interrupt is pending
Bit = 1: An interrupt is pending
// GPIO Interrupt Flag Bit 4
Bit = 0: No interrupt is pending
Bit = 1: An interrupt is pending
// GPIO Interrupt Flag Bit 5
Bit = 0: No interrupt is pending
Bit = 1: An interrupt is pending
// GPIO Interrupt Flag Bit 6
Bit = 0: No interrupt is pending
Bit = 1: An interrupt is pending
// GPIO Interrupt Flag Bit 7
Bit = 0: No interrupt is pending
Bit = 1: An interrupt is pending
};
SEE
struct IGPIO.GpioBits8PxIn_t |
![](../../../../../Arrow_up.png) |
Generic GPIO 8-bit register
metaonly struct GpioBits8PxIn_t {
// GPIO Input Signal Bit 0
// GPIO Input Signal Bit 1
// GPIO Input Signal Bit 2
// GPIO Input Signal Bit 3
// GPIO Input Signal Bit 4
// GPIO Input Signal Bit 5
// GPIO Input Signal Bit 6
// GPIO Input Signal Bit 7
};
SEE
struct IGPIO.GpioBits8PxOut_t |
![](../../../../../Arrow_up.png) |
Generic GPIO 8-bit PxOUT register
metaonly struct GpioBits8PxOut_t {
// GPIO Output Signal Bit 0
// GPIO Output Signal Bit 1
// GPIO Output Signal Bit 2
// GPIO Output Signal Bit 3
// GPIO Output Signal Bit 4
// GPIO Output Signal Bit 5
// GPIO Output Signal Bit 6
// GPIO Output Signal Bit 7
};
SEE
struct IGPIO.GpioBits8PxRen_t |
![](../../../../../Arrow_up.png) |
Generic GPIO 8-bit PxREN register
metaonly struct GpioBits8PxRen_t {
// GPIO Enables or Disables Pullup/Pulldown Bit 0
Bit = 0: Pullup/pulldown resistor disabled
Bit = 1: Pullup/pulldown resistor enabled
// GPIO Enables or Disables Pullup/Pulldown Bit 1
Bit = 0: Pullup/pulldown resistor disabled
Bit = 1: Pullup/pulldown resistor enabled
// GPIO Enables or Disables Pullup/Pulldown Bit 2
Bit = 0: Pullup/pulldown resistor disabled
Bit = 1: Pullup/pulldown resistor enabled
// GPIO Enables or Disables Pullup/Pulldown Bit 3
Bit = 0: Pullup/pulldown resistor disabled
Bit = 1: Pullup/pulldown resistor enabled
// GPIO Enables or Disables Pullup/Pulldown Bit 4
Bit = 0: Pullup/pulldown resistor disabled
Bit = 1: Pullup/pulldown resistor enabled
// GPIO Enables or Disables Pullup/Pulldown Bit 5
Bit = 0: Pullup/pulldown resistor disabled
Bit = 1: Pullup/pulldown resistor enabled
// GPIO Enables or Disables Pullup/Pulldown Bit 6
Bit = 0: Pullup/pulldown resistor disabled
Bit = 1: Pullup/pulldown resistor enabled
// GPIO Enables or Disables Pullup/Pulldown Bit 7
Bit = 0: Pullup/pulldown resistor disabled
Bit = 1: Pullup/pulldown resistor enabled
};
SEE
struct IGPIO.GpioBits8PxSel_t |
![](../../../../../Arrow_up.png) |
Generic GPIO 8-bit PxSEL register
metaonly struct GpioBits8PxSel_t {
// GPIO Select Pin Function Bit 0
See the device-specific data sheet to determine pin functions
// GPIO Select Pin Function Bit 1
See the device-specific data sheet to determine pin functions
// GPIO Select Pin Function Bit 2
See the device-specific data sheet to determine pin functions
// GPIO Select Pin Function Bit 3
See the device-specific data sheet to determine pin functions
// GPIO Select Pin Function Bit 4
See the device-specific data sheet to determine pin functions
// GPIO Select Pin Function Bit 5
See the device-specific data sheet to determine pin functions
// GPIO Select Pin Function Bit 6
See the device-specific data sheet to determine pin functions
// GPIO Select Pin Function Bit 7
See the device-specific data sheet to determine pin functions
};
SEE
IGPIO.addPeripheralsMap() // module-wide |
![](../../../../../Arrow_up.png) |
Create a map of all peripherals available on a device
ARGUMENTS
DETAILS
The config parameter
peripherals is by default undefined in an
xdc.platform.ICpuDataSheet instance. This function gathers
all instance configuration parameters that are of the type
xdc.platform.IPeripheral into the map
peripherals.
IGPIO.getAll() // module-wide |
![](../../../../../Arrow_up.png) |
Find all peripherals of a certain type
DETAILS
The type of the peripherals returned is defined by the type of the
caller.
RETURNS
Returns an array of IPeripheral instances
IGPIO.getRegisters() // module-wide |
![](../../../../../Arrow_up.png) |
Find all registers defined by the peripheral
RETURNS
Returns an array of register names
config IGPIO.name // instance |
![](../../../../../Arrow_up.png) |
Specific peripheral name given by the device
DETAILS
Devices can have more than one peripheral of the same type. In such
cases, device data sheets give different names to the instances of a
same peripheral. For example, the name for a timer module could be
TimerA3, and a device that has two such timers can name them TA0
and TA1.
config IGPIO.owner // instance |
![](../../../../../Arrow_up.png) |
String specifying the entity that manages the peripheral
IGPIO.getNumberOfPorts() // instance |
![](../../../../../Arrow_up.png) |
Get getNumberOfPorts
UChar getNumberOfPorts();
IGPIO.getTotalNumberOfGPIOs() // instance |
![](../../../../../Arrow_up.png) |
Get getTotalNumberOfGPIOs
UChar getTotalNumberOfGPIOs();