This module contains APIs to program and use the pinmux module.
|
enum | Power_GPIO_SYNCIO_Wakeup_Enable { POWER_GPIO_WAKEUP_LPDS,
POWER_SYNCIN_IO_WAKEUP_LPDS
} |
|
enum | Power_ParkState {
POWER_NO_PULL_HIZ,
POWER_WEAK_PULL_UP_STD,
POWER_WEAK_PULL_DOWN_STD,
POWER_DRIVE_LOW,
POWER_DRIVE_HIGH,
POWER_DONT_PARK
} |
| Enumeration of states a pin can be parked in. More...
|
|
enum | Power_Pin {
POWER_PIN_PAD_AA = PIN_PAD_AA,
POWER_PIN_PAD_AB = PIN_PAD_AB,
POWER_PIN_PAD_AC = PIN_PAD_AC,
POWER_PIN_PAD_AD = PIN_PAD_AD,
POWER_PIN_PAD_AE = PIN_PAD_AE,
POWER_PIN_PAD_AF = PIN_PAD_AF,
POWER_PIN_PAD_AG = PIN_PAD_AG,
POWER_PIN_PAD_AH = PIN_PAD_AH,
POWER_PIN_PAD_AI = PIN_PAD_AI,
POWER_PIN_PAD_AJ = PIN_PAD_AJ,
POWER_PIN_PAD_AK = PIN_PAD_AK,
POWER_PIN_PAD_AL = PIN_PAD_AL,
POWER_PIN_PAD_AM = PIN_PAD_AM,
POWER_PIN_PAD_AN = PIN_PAD_AN,
POWER_PIN_PAD_AO = PIN_PAD_AO,
POWER_PIN_PAD_AP = PIN_PAD_AP,
POWER_PIN_PAD_AQ = PIN_PAD_AQ,
POWER_PIN_PAD_AR = PIN_PAD_AR,
POWER_PIN_PAD_AS = PIN_PAD_AS,
POWER_PIN_PAD_AT = PIN_PAD_AT,
POWER_PIN_PAD_AU = PIN_PAD_AU,
POWER_PIN_PAD_AV = PIN_PAD_AV,
POWER_PIN_PAD_AW = PIN_PAD_AW,
POWER_PIN_PAD_AX = PIN_PAD_AX
} |
| Enumeration of pins that can be parked. More...
|
|
◆ POWER_RESUMETIMELPDS
#define POWER_RESUMETIMELPDS 2500 |
The latency to reserve for resuming from LPDS (usec)
◆ POWER_PERIPH_CAN
#define POWER_PERIPH_CAN 0 |
◆ POWER_PERIPH_SPI
#define POWER_PERIPH_SPI 1 |
◆ POWER_PERIPH_QSPI
#define POWER_PERIPH_QSPI 2 |
◆ POWER_PERIPH_TOPSS
#define POWER_PERIPH_TOPSS 3 |
◆ POWER_PERIPH_APP_RTI
#define POWER_PERIPH_APP_RTI 4 |
◆ POWER_PERIPH_WD
#define POWER_PERIPH_WD 5 |
◆ POWER_PERIPH_UART0
#define POWER_PERIPH_UART0 6 |
◆ POWER_PERIPH_UART1
#define POWER_PERIPH_UART1 7 |
◆ POWER_PERIPH_I2C
#define POWER_PERIPH_I2C 8 |
◆ POWER_PERIPH_LIN
#define POWER_PERIPH_LIN 9 |
◆ POWER_PERIPH_ESM
#define POWER_PERIPH_ESM 10 |
◆ POWER_PERIPH_EDMA
#define POWER_PERIPH_EDMA 11 |
◆ POWER_PERIPH_CRC
#define POWER_PERIPH_CRC 12 |
◆ POWER_PERIPH_PWM
#define POWER_PERIPH_PWM 13 |
◆ POWER_PERIPH_GIO
#define POWER_PERIPH_GIO 14 |
◆ POWER_PERIPH_HWASS
#define POWER_PERIPH_HWASS 15 |
◆ POWER_DISALLOW_LPDS
#define POWER_DISALLOW_LPDS 0 |
Constraint: Disallow entry to Low Power Deep Sleep (LPDS)
◆ POWER_DISALLOW_SLEEP
#define POWER_DISALLOW_SLEEP 1 |
Constraint: Disallow entry to Sleep
◆ POWER_DISALLOW_IDLE
#define POWER_DISALLOW_IDLE 2 |
Constraint: Disallow entry to Idle
◆ POWER_ENTERING_LPDS
#define POWER_ENTERING_LPDS 0x1 |
Power event: The device is entering the LPDS sleep state
◆ POWER_ENTERING_SLEEP
#define POWER_ENTERING_SLEEP 0x2 |
Power event: The device is entering the device sleep state
◆ POWER_ENTERING_IDLE
#define POWER_ENTERING_IDLE 0x4 |
Power event: The device is entering the idle state
◆ POWER_AWAKE_LPDS
#define POWER_AWAKE_LPDS 0x8 |
Power event: The device is waking from the LPDS sleep state
◆ POWER_AWAKE_SLEEP
#define POWER_AWAKE_SLEEP 0x10 |
Power event: The device is waking from the device sleep state
◆ POWER_AWAKE_IDLE
#define POWER_AWAKE_IDLE 0x20 |
Power event: The device is waking from the device idle state
◆ Power_GPIO_SYNCIO_Wakeup_Enable
Enumerator |
---|
POWER_GPIO_WAKEUP_LPDS | |
POWER_SYNCIN_IO_WAKEUP_LPDS | |
◆ Power_ParkState
Enumeration of states a pin can be parked in.
Enumerator |
---|
POWER_NO_PULL_HIZ | No pull resistor, leave pin in a HIZ state
|
POWER_WEAK_PULL_UP_STD | Pull-up resistor for standard pin type
|
POWER_WEAK_PULL_DOWN_STD | Pull-down resistor for standard pin type
|
POWER_DRIVE_LOW | Drive pin to a low logic state
|
POWER_DRIVE_HIGH | Drive pin to a high logic state
|
POWER_DONT_PARK | Take no action; do not park the pin
|
◆ Power_Pin
Enumeration of pins that can be parked.
Enumerator |
---|
POWER_PIN_PAD_AA | PIN_PAD_AA
|
POWER_PIN_PAD_AB | PIN_PAD_AB
|
POWER_PIN_PAD_AC | PIN_PAD_AC
|
POWER_PIN_PAD_AD | PIN_PAD_AD
|
POWER_PIN_PAD_AE | PIN_PAD_AE
|
POWER_PIN_PAD_AF | PIN_PAD_AF
|
POWER_PIN_PAD_AG | PIN_PAD_AG
|
POWER_PIN_PAD_AH | PIN_PAD_AH
|
POWER_PIN_PAD_AI | PIN_PAD_AI
|
POWER_PIN_PAD_AJ | PIN_PAD_AJ
|
POWER_PIN_PAD_AK | PIN_PAD_AK
|
POWER_PIN_PAD_AL | PIN_PAD_AL
|
POWER_PIN_PAD_AM | PIN_PAD_AM
|
POWER_PIN_PAD_AN | PIN_PAD_AN
|
POWER_PIN_PAD_AO | PIN_PAD_AO
|
POWER_PIN_PAD_AP | PIN_PAD_AP
|
POWER_PIN_PAD_AQ | PIN_PAD_AQ
|
POWER_PIN_PAD_AR | PIN_PAD_AR
|
POWER_PIN_PAD_AS | PIN_PAD_AS
|
POWER_PIN_PAD_AT | PIN_PAD_AT
|
POWER_PIN_PAD_AU | PIN_PAD_AU
|
POWER_PIN_PAD_AV | PIN_PAD_AV
|
POWER_PIN_PAD_AW | PIN_PAD_AW
|
POWER_PIN_PAD_AX | PIN_PAD_AX
|
◆ Power_configureWakeup()
Function configures wakeup for LPDS and shutdown.
This function allows the app to configure the GPIO source and type for waking up from LPDS and shutdown and the network host as a wakeup source for LPDS. This overwrites any previous wakeup settings.
- Parameters
-
[in] | wakeup | Settings applied to wakeup configuration |
◆ Power_initPolicy()
void Power_initPolicy |
( |
void |
| ) |
|
OS-specific power policy initialization function
◆ Power_getWakeup()
Function to get wakeup configuration settings.
This function allows an app to query the current LPDS and shutdown wakeup configuration settings.
- Parameters
-
◆ Power_getParkState()
64XX-specific function to query the LPDS park state for a pin
◆ Power_restoreParkState()
64XX-specific function to restore the LPDS park state for a pin
◆ Power_setParkState()
void Power_setParkState |
( |
Power_Pin |
pin, |
|
|
uint32_t |
level |
|
) |
| |
64XX-specific function to dynamically set the LPDS park state for a pin
◆ Power_sleepPolicy()
void Power_sleepPolicy |
( |
unsigned long long |
sleepTimeus | ) |
|
A reference power policy is provided which can transition the MCU from the active state to one of two sleep states: Low-Power Deep Sleep (LPDS) or Sleep.
The policy looks at the estimated idle time remaining, and the active constraints, and determine which sleep state to transition to. The policy will give first preference to choosing LPDS, but if that is not appropriate (e.g., not enough idle time), it will choose Sleep.
◆ Power_reset()
int_fast16_t Power_reset |
( |
uint_fast16_t |
resourceId | ) |
|
Software reset of a resource.
This function performs a software reset of a resource.
Resource identifiers are device specific, and defined in the device-specific Power include file. For example, the resources for 64XX are defined in Power.h.
- Parameters
-
[in] | resourceId | resource id |
- Return values
-
#Power_SOK | on success, |
#Power_EINVALIDINPUT | if the reseourceId is invalid. |
◆ Power_Idle3()
Device Idle mode.
This function brings the device to Idle3 mode.
◆ Power_afterLPDS()
void Power_afterLPDS |
( |
void |
| ) |
|