PDK API Guide for J721E
|
This Module explains about PMIC GPIO driver parameters and APIs usage. PMIC GPIO Driver module covers all GPIO features APIs. Like, set/get gpio pin functions, pull up/down, drive strength, output drain, pin value, enable/disable gpio interrupt and configure nPWRON or ENABLE pin features.
Supported PMIC devices for GPIO Module:
Files | |
file | pmic_gpio.h |
PMIC Low Level Driver API/interface file for GPIO API. | |
file | pmic_gpio_tps6594x.h |
PMIC TPS6594x Leo PMIC GPIO API/interface file. | |
file | pmic_gpio_lp8764x.h |
PMIC LP8764x Hera PMIC GPIO API/interface file. | |
Data Structures | |
struct | Pmic_GpioCfg_t |
PMIC GPIO/NPWRON/ENABLE pin configuration structure. Note: validParams is input param for all Set and Get APIs. other params except validParams is input param for Set APIs and output param for Get APIs. More... | |
Functions | |
int32_t | Pmic_gpioSetConfiguration (Pmic_CoreHandle_t *pPmicCoreHandle, const uint8_t pin, const Pmic_GpioCfg_t gpioCfg) |
API to set PMIC GPIO configuration. More... | |
int32_t | Pmic_gpioGetConfiguration (Pmic_CoreHandle_t *pPmicCoreHandle, const uint8_t pin, Pmic_GpioCfg_t *pGpioCfg) |
API to get PMIC GPIO configuration. More... | |
int32_t | Pmic_gpioSetValue (Pmic_CoreHandle_t *pPmicCoreHandle, const uint8_t pin, const uint8_t pinValue) |
API to set PMIC GPIO value. More... | |
int32_t | Pmic_gpioGetValue (Pmic_CoreHandle_t *pPmicCoreHandle, const uint8_t pin, uint8_t *pPinValue) |
API to get PMIC GPIO value. More... | |
int32_t | Pmic_gpioSetIntr (Pmic_CoreHandle_t *pPmicCoreHandle, const uint8_t pin, const uint8_t intrType, const uint8_t maskPol) |
API to enable/disable GPIO interrupt. More... | |
int32_t | Pmic_gpioSetNPwronEnablePinConfiguration (Pmic_CoreHandle_t *pPmicCoreHandle, const Pmic_GpioCfg_t gpioCfg) |
API to set configuration for NPWRON/Enable pin. More... | |
int32_t | Pmic_gpioGetNPwronEnablePinConfiguration (Pmic_CoreHandle_t *pPmicCoreHandle, Pmic_GpioCfg_t *pGpioCfg) |
API to get configuration for NPWRON/Enable pin. More... | |
int32_t | Pmic_gpioTps6594xNPwronPinGetValue (Pmic_CoreHandle_t *pPmicCoreHandle, uint8_t *pPinValue) |
API to get PMIC GPIO NPWRON/Enable pin value. More... | |
PMIC GPIO Pin Configuration Structure Param Bit shift values | |
Application can use below shifted values to set the validParams struct member defined in Pmic_GpioCfg_t structure | |
#define | PMIC_GPIO_CFG_DIR_VALID_SHIFT (0x01U << PMIC_GPIO_CFG_DIR_VALID) |
#define | PMIC_GPIO_CFG_OD_VALID_SHIFT (0x01U << PMIC_GPIO_CFG_OD_VALID) |
#define | PMIC_GPIO_CFG_PULL_VALID_SHIFT (0x01U << PMIC_GPIO_CFG_PULL_VALID) |
#define | PMIC_GPIO_CFG_DEGLITCH_VALID_SHIFT (0x01U << PMIC_GPIO_CFG_DEGLITCH_VALID) |
#define | PMIC_GPIO_CFG_PINFUNC_VALID_SHIFT (0x01U << PMIC_GPIO_CFG_PINFUNC_VALID) |
#define | PMIC_ENABLE_CFG_POLARITY_VALID_SHIFT (1U << PMIC_ENABLE_CFG_POLARITY_VALID) |
PMIC GPIO Deglitch Time Enable or Disable Configuration | |
#define | PMIC_GPIO_DEGLITCH_DISABLE (0U) |
#define | PMIC_GPIO_DEGLITCH_ENABLE (1U) |
PMIC GPIO signal direction | |
#define | PMIC_GPIO_INPUT (0U) |
#define | PMIC_GPIO_OUTPUT (1U) |
PMIC GPIO signal type when configured as output | |
#define | PMIC_GPIO_PUSH_PULL_OUTPUT (0U) |
#define | PMIC_GPIO_OPEN_DRAIN_OUTPUT (1U) |
PMIC GPIO/NPWRON/ENABLE signal level | |
#define | PMIC_GPIO_LOW (0U) |
#define | PMIC_GPIO_HIGH (1U) |
PMIC GPIO Pull-up/pull-down select | |
#define | PMIC_GPIO_PD_SELECT (0U) |
#define | PMIC_GPIO_PU_SELECT (1U) |
PMIC GPIO Pull-up/pull-down enable/disable | |
#define | PMIC_GPIO_PU_PD_DISABLE (0U) |
#define | PMIC_GPIO_PU_PD_ENABLE (1U) |
PMIC Pmic_GpioCfg_s member configuration type | |
#define | PMIC_GPIO_CFG_DIR_VALID (0x00U) |
validParams value used to set/get gpio pin Direction Valid only for GPIO pins only. Invalid for NPWRON/Enable More... | |
#define | PMIC_GPIO_CFG_OD_VALID (0x01U) |
validParams value used to set/get output signal type Valid only for GPIO pins only. Invalid for NPWRON/Enable More... | |
#define | PMIC_GPIO_CFG_PULL_VALID (0x02U) |
validParams value used to set/get pullup/pull down control More... | |
#define | PMIC_GPIO_CFG_DEGLITCH_VALID (0x03U) |
validParams value used to set/get signal deglitch time enable/disable More... | |
#define | PMIC_GPIO_CFG_PINFUNC_VALID (0x04U) |
validParams value used to set/get pin mux function More... | |
#define | PMIC_ENABLE_CFG_POLARITY_VALID (0x05U) |
validParams value used to set/get pin polarity Valid only for Enable pin for TPS6594x Leo and LP8764x Hera device Invalid for NPWRON pin for TPS6594x Leo device More... | |
PMIC GPIO pull up/pull down selectionn | |
#define | PMIC_GPIO_PULL_DISABLED (0x0U) |
#define | PMIC_GPIO_PULL_DOWN (0x1U) |
#define | PMIC_GPIO_PULL_UP (0x2U) |
PMIC GPIO Interrupt selection | |
#define | PMIC_GPIO_FALL_INTERRUPT (0U) |
#define | PMIC_GPIO_RISE_INTERRUPT (1U) |
#define | PMIC_GPIO_FALL_RISE_INTERRUPT (2U) |
#define | PMIC_GPIO_DISABLE_INTERRUPT (3U) |
PMIC GPIO Interrupt Polarity selection | |
#define | PMIC_GPIO_POL_LOW (0U) |
#define | PMIC_GPIO_POL_HIGH (1U) |
PMIC GPIO supported pins for TPS6594x Leo Device | |
#define | PMIC_TPS6594X_GPIO1_PIN (1U) |
#define | PMIC_TPS6594X_GPIO2_PIN (2U) |
#define | PMIC_TPS6594X_GPIO3_PIN (3U) |
#define | PMIC_TPS6594X_GPIO4_PIN (4U) |
#define | PMIC_TPS6594X_GPIO5_PIN (5U) |
#define | PMIC_TPS6594X_GPIO6_PIN (6U) |
#define | PMIC_TPS6594X_GPIO7_PIN (7U) |
#define | PMIC_TPS6594X_GPIO8_PIN (8U) |
#define | PMIC_TPS6594X_GPIO9_PIN (9U) |
#define | PMIC_TPS6594X_GPIO10_PIN (10U) |
#define | PMIC_TPS6594X_GPIO11_PIN (11U) |
PMIC GPIO pin functions supported for TPS6594x Leo Device | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO (0U) |
Used to configure GPIO Pin Function. Valid for all GPIO Pins. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO1_SCL_I2C2_CS_SPI (1U) |
Used to configure SCL_I2C2/CS_SPI Pin Function. Valid only for GPIO1 pin. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO2_GPIO11_TRIG_WDOG (1U) |
Used to configure TRIG_WDOG Pin Function. Valid only for GPIO2 and GPIO11 pins. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO3_GPIO4_GPIO8_CLK32KOUT (1U) |
Used to configure CLK32KOUT Pin Function. Valid only for GPIO3, GPIO4 and GPIO8 pins. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO5_SCLK_SPMI (1U) |
Used to configure SCLK_SPMI Pin Function. Valid only for GPIO5 pin. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO6_SDATA_SPMI (1U) |
Used to configure SDATA_SPMI Pin Function. Valid only for GPIO6 pin. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO7_NERR_MCU (1U) |
Used to configure NERR_MCU Pin Function. Valid only for GPIO7 pin. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO9_PGOOD (1U) |
Used to configure PGOOD Pin Function. Valid only for GPIO9 pin. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO10_SYNCCLKIN (1U) |
Used to configure SYNCCLKIN Pin Function. Valid only for GPIO10 pin. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO1_GPIO11_NRSTOUT_SOC (2U) |
Used to configure NRSTOUT_SOC Pin Function. Valid only for GPIO1 and GPIO11 pin. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO2_SDA_I2C2_SDO_SPI (2U) |
Used to configure SDA_I2C2/SDO_SPI Pin Function. Valid only for GPIO2 pin. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO3_NERR_SOC (2U) |
Used to configure NERR_SOC Pin Function. Valid only for GPIO3 pin. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO8_GPIO10_SYNCCLKOUT (2U) |
Used to configure SYNCCLKOUT Pin Function. Valid only for GPIO8 and GPIO10 pin. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO9_DISABLE_WDOG (2U) |
Used to configure DISABLE_WDOG Pin Function. Valid only for GPIO9 pin. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO8_DISABLE_WDOG (3U) |
Used to configure DISABLE_WDOG Pin Function. Valid only for GPIO8 pin. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO9_SYNCCLKOUT (3U) |
Used to configure SYNCCLKOUT Pin Function. Valid only for GPIO9 pin. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO10_CLK32KOUT (3U) |
Used to configure CLK32KOUT Pin Function. Valid only for GPIO10 pin. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_NSLEEP1 (4U) |
Used to configure NSLEEP1 Pin Function. Valid for all GPIO Pins. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_NSLEEP2 (5U) |
Used to configure NSLEEP2 Pin Function. Valid for all GPIO Pins. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_WKUP1 (6U) |
Used to configure WKUP1 Pin Function. Valid for all GPIO Pins except GPIO3 and GPIO4 pins. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO3_GPIO4_LP_WKUP1 (6U) |
Used to configure LP_WKUP1 Pin Function. Valid only for GPIO3 and GPIO4 pins. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_WKUP2 (7U) |
Used to configure WKUP2 Pin Function. Valid for all GPIO Pins except GPIO3 and GPIO4 pins. More... | |
#define | PMIC_TPS6594X_GPIO_PINFUNC_GPIO3_GPIO4_LP_WKUP2 (7U) |
Used to configure LP_WKUP2 Pin Function. Valid only for GPIO3 and GPIO4 pins. More... | |
PMIC GPIO NPWRON pin functions supported for TPS6594x Leo Device | |
#define | PMIC_TPS6594X_NPWRON_PINFUNC_ENABLE (0U) |
Enable Signal Function for NPWRON/ENABLE pin. More... | |
#define | PMIC_TPS6594X_NPWRON_PINFUNC_NPWRON (1U) |
NPWRON Signal Function for NPWRON/ENABLE pin. More... | |
#define | PMIC_TPS6594X_NPWRON_PINFUNC_NONE (2U) |
None Function for NPWRON/ENABLE pin. More... | |
PMIC GPIO supported pins for LP8764x HERA Device | |
#define | PMIC_LP8764X_GPIO1_PIN (1U) |
#define | PMIC_LP8764X_GPIO2_PIN (2U) |
#define | PMIC_LP8764X_GPIO3_PIN (3U) |
#define | PMIC_LP8764X_GPIO4_PIN (4U) |
#define | PMIC_LP8764X_GPIO5_PIN (5U) |
#define | PMIC_LP8764X_GPIO6_PIN (6U) |
#define | PMIC_LP8764X_GPIO7_PIN (7U) |
#define | PMIC_LP8764X_GPIO8_PIN (8U) |
#define | PMIC_LP8764X_GPIO9_PIN (9U) |
#define | PMIC_LP8764X_GPIO10_PIN (10U) |
PMIC GPIO pin functions supported by LP8764x HERA PMIC | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO (0U) |
Used to configure GPIO Pin Function. Valid for all GPIO Pins. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO1_EN_DRV (1U) |
Used to configure EN_DRV Pin Function. Valid only for GPIO1 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO2_SCL_I2C2 (1U) |
Used to configure SCL_I2C2 Pin Function. Valid only for GPIO2 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO3_SDA_I2C2 (1U) |
Used to configure SDA_I2C2 Pin Function. Valid only for GPIO3 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO4_ENABLE (1U) |
Used to configure ENABLE Pin Function. Valid only for GPIO4 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO5_SYNCCLKIN (1U) |
Used to configure SYNCCLKIN Pin Function. Valid only for GPIO5 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO6_GPIO7_NERR_MCU (1U) |
Used to configure nERR_MCU Pin Function. Valid only for GPIO7 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO8_SCLK_SPMI (1U) |
Used to configure SCLK_SPMI Pin Function. Valid only for GPIO8 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO9_SDATA_SPMI (1U) |
Used to configure SDATA_SPMI Pin Function. Valid only for GPIO9 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO10_NRSTOUT (1U) |
Used to configure nRSTOUT Pin Function. Valid only for GPIO10 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO1_GPIO10_NRSTOUT_SOC (2U) |
Used to configure nRSTOUT_SOC Pin Function. Valid only for GPIO1 and GPIO10 Pins. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO2_CS_SPI (2U) |
Used to configure CS_SPI Pin Function. Valid only for GPIO2 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO3_SDO_SPI (2U) |
Used to configure SDO_SPI Pin Function. Valid only for GPIO3 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO4_TRIG_WDOG (2U) |
Used to configure TRIG_WDOG Pin Function. Valid only for GPIO4 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO5_GPIO6_SYNCCLKOUT (2U) |
Used to configure SYNCCLKOUT Pin Function. Valid only for GPIO5 and GPIO6 Pins. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO7_REFOUT (2U) |
Used to configure REFOUT Pin Function. Valid only for GPIO7 Pins. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO8_VMON2 (2U) |
Used to configure VMON2 Pin Function. Valid only for GPIO8 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO9_PGOOD (2U) |
Used to configure PGOOD Pin Function. Valid only for GPIO9 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO1_GPIO6_PGOOD (3U) |
Used to configure PGOOD Pin Function. Valid only for GPIO1 and GPIO6 Pins. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO2_TRIG_WDOG (3U) |
Used to configure TRIG_WDOG Pin Function. Valid only for GPIO2 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO4_BUCK1_VMON (3U) |
Used to configure BUCK1_VMON Pin Function. Valid only for GPIO4 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO5_NRSTOUT_SOC (3U) |
Used to configure nRSTOUT_SOC Pin Function. Valid only for GPIO5 Pins. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO7_VMON1 (3U) |
Used to configure VMON1 Pin Function. Valid only for GPIO7 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_GPIO9_SYNCCLKIN (3U) |
Used to configure SYNCCLKIN Pin Function. Valid only for GPIO9 Pin. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_NSLEEP1 (4U) |
Used to configure NSLEEP1 Pin Function. Valid only for GPIO1 to GPIO10 Pins. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_NSLEEP2 (5U) |
Used to configure NSLEEP2 Pin Function. Valid only for GPIO1 to GPIO10 Pins. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_WKUP1 (6U) |
Used to configure WKUP1 Pin Function. Valid only for GPIO1 to GPIO10 Pins. More... | |
#define | PMIC_LP8764X_GPIO_PINFUNC_WKUP2 (7U) |
Used to configure WKUP2 Pin Function. Valid only for GPIO1 to GPIO10 Pins. More... | |
#define PMIC_GPIO_CFG_DIR_VALID_SHIFT (0x01U << PMIC_GPIO_CFG_DIR_VALID) |
#define PMIC_GPIO_CFG_OD_VALID_SHIFT (0x01U << PMIC_GPIO_CFG_OD_VALID) |
#define PMIC_GPIO_CFG_PULL_VALID_SHIFT (0x01U << PMIC_GPIO_CFG_PULL_VALID) |
#define PMIC_GPIO_CFG_DEGLITCH_VALID_SHIFT (0x01U << PMIC_GPIO_CFG_DEGLITCH_VALID) |
#define PMIC_GPIO_CFG_PINFUNC_VALID_SHIFT (0x01U << PMIC_GPIO_CFG_PINFUNC_VALID) |
#define PMIC_ENABLE_CFG_POLARITY_VALID_SHIFT (1U << PMIC_ENABLE_CFG_POLARITY_VALID) |
#define PMIC_GPIO_DEGLITCH_DISABLE (0U) |
#define PMIC_GPIO_DEGLITCH_ENABLE (1U) |
#define PMIC_GPIO_INPUT (0U) |
#define PMIC_GPIO_OUTPUT (1U) |
#define PMIC_GPIO_PUSH_PULL_OUTPUT (0U) |
#define PMIC_GPIO_OPEN_DRAIN_OUTPUT (1U) |
#define PMIC_GPIO_LOW (0U) |
#define PMIC_GPIO_HIGH (1U) |
#define PMIC_GPIO_PD_SELECT (0U) |
#define PMIC_GPIO_PU_SELECT (1U) |
#define PMIC_GPIO_PU_PD_DISABLE (0U) |
#define PMIC_GPIO_PU_PD_ENABLE (1U) |
#define PMIC_GPIO_CFG_DIR_VALID (0x00U) |
validParams value used to set/get gpio pin Direction Valid only for GPIO pins only. Invalid for NPWRON/Enable
#define PMIC_GPIO_CFG_OD_VALID (0x01U) |
validParams value used to set/get output signal type Valid only for GPIO pins only. Invalid for NPWRON/Enable
#define PMIC_GPIO_CFG_PULL_VALID (0x02U) |
validParams value used to set/get pullup/pull down control
#define PMIC_GPIO_CFG_DEGLITCH_VALID (0x03U) |
validParams value used to set/get signal deglitch time enable/disable
#define PMIC_GPIO_CFG_PINFUNC_VALID (0x04U) |
validParams value used to set/get pin mux function
#define PMIC_ENABLE_CFG_POLARITY_VALID (0x05U) |
validParams value used to set/get pin polarity Valid only for Enable pin for TPS6594x Leo and LP8764x Hera device Invalid for NPWRON pin for TPS6594x Leo device
#define PMIC_GPIO_PULL_DISABLED (0x0U) |
#define PMIC_GPIO_PULL_DOWN (0x1U) |
#define PMIC_GPIO_PULL_UP (0x2U) |
#define PMIC_GPIO_FALL_INTERRUPT (0U) |
#define PMIC_GPIO_RISE_INTERRUPT (1U) |
#define PMIC_GPIO_FALL_RISE_INTERRUPT (2U) |
#define PMIC_GPIO_DISABLE_INTERRUPT (3U) |
#define PMIC_GPIO_POL_LOW (0U) |
#define PMIC_GPIO_POL_HIGH (1U) |
#define PMIC_TPS6594X_GPIO1_PIN (1U) |
#define PMIC_TPS6594X_GPIO2_PIN (2U) |
#define PMIC_TPS6594X_GPIO3_PIN (3U) |
#define PMIC_TPS6594X_GPIO4_PIN (4U) |
#define PMIC_TPS6594X_GPIO5_PIN (5U) |
#define PMIC_TPS6594X_GPIO6_PIN (6U) |
#define PMIC_TPS6594X_GPIO7_PIN (7U) |
#define PMIC_TPS6594X_GPIO8_PIN (8U) |
#define PMIC_TPS6594X_GPIO9_PIN (9U) |
#define PMIC_TPS6594X_GPIO10_PIN (10U) |
#define PMIC_TPS6594X_GPIO11_PIN (11U) |
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO (0U) |
Used to configure GPIO Pin Function. Valid for all GPIO Pins.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO1_SCL_I2C2_CS_SPI (1U) |
Used to configure SCL_I2C2/CS_SPI Pin Function. Valid only for GPIO1 pin.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO2_GPIO11_TRIG_WDOG (1U) |
Used to configure TRIG_WDOG Pin Function. Valid only for GPIO2 and GPIO11 pins.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO3_GPIO4_GPIO8_CLK32KOUT (1U) |
Used to configure CLK32KOUT Pin Function. Valid only for GPIO3, GPIO4 and GPIO8 pins.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO5_SCLK_SPMI (1U) |
Used to configure SCLK_SPMI Pin Function. Valid only for GPIO5 pin.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO6_SDATA_SPMI (1U) |
Used to configure SDATA_SPMI Pin Function. Valid only for GPIO6 pin.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO7_NERR_MCU (1U) |
Used to configure NERR_MCU Pin Function. Valid only for GPIO7 pin.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO9_PGOOD (1U) |
Used to configure PGOOD Pin Function. Valid only for GPIO9 pin.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO10_SYNCCLKIN (1U) |
Used to configure SYNCCLKIN Pin Function. Valid only for GPIO10 pin.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO1_GPIO11_NRSTOUT_SOC (2U) |
Used to configure NRSTOUT_SOC Pin Function. Valid only for GPIO1 and GPIO11 pin.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO2_SDA_I2C2_SDO_SPI (2U) |
Used to configure SDA_I2C2/SDO_SPI Pin Function. Valid only for GPIO2 pin.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO3_NERR_SOC (2U) |
Used to configure NERR_SOC Pin Function. Valid only for GPIO3 pin.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO8_GPIO10_SYNCCLKOUT (2U) |
Used to configure SYNCCLKOUT Pin Function. Valid only for GPIO8 and GPIO10 pin.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO9_DISABLE_WDOG (2U) |
Used to configure DISABLE_WDOG Pin Function. Valid only for GPIO9 pin.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO8_DISABLE_WDOG (3U) |
Used to configure DISABLE_WDOG Pin Function. Valid only for GPIO8 pin.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO9_SYNCCLKOUT (3U) |
Used to configure SYNCCLKOUT Pin Function. Valid only for GPIO9 pin.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO10_CLK32KOUT (3U) |
Used to configure CLK32KOUT Pin Function. Valid only for GPIO10 pin.
#define PMIC_TPS6594X_GPIO_PINFUNC_NSLEEP1 (4U) |
Used to configure NSLEEP1 Pin Function. Valid for all GPIO Pins.
#define PMIC_TPS6594X_GPIO_PINFUNC_NSLEEP2 (5U) |
Used to configure NSLEEP2 Pin Function. Valid for all GPIO Pins.
#define PMIC_TPS6594X_GPIO_PINFUNC_WKUP1 (6U) |
Used to configure WKUP1 Pin Function. Valid for all GPIO Pins except GPIO3 and GPIO4 pins.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO3_GPIO4_LP_WKUP1 (6U) |
Used to configure LP_WKUP1 Pin Function. Valid only for GPIO3 and GPIO4 pins.
#define PMIC_TPS6594X_GPIO_PINFUNC_WKUP2 (7U) |
Used to configure WKUP2 Pin Function. Valid for all GPIO Pins except GPIO3 and GPIO4 pins.
#define PMIC_TPS6594X_GPIO_PINFUNC_GPIO3_GPIO4_LP_WKUP2 (7U) |
Used to configure LP_WKUP2 Pin Function. Valid only for GPIO3 and GPIO4 pins.
#define PMIC_TPS6594X_NPWRON_PINFUNC_ENABLE (0U) |
Enable Signal Function for NPWRON/ENABLE pin.
#define PMIC_TPS6594X_NPWRON_PINFUNC_NPWRON (1U) |
NPWRON Signal Function for NPWRON/ENABLE pin.
#define PMIC_TPS6594X_NPWRON_PINFUNC_NONE (2U) |
None Function for NPWRON/ENABLE pin.
#define PMIC_LP8764X_GPIO1_PIN (1U) |
#define PMIC_LP8764X_GPIO2_PIN (2U) |
#define PMIC_LP8764X_GPIO3_PIN (3U) |
#define PMIC_LP8764X_GPIO4_PIN (4U) |
#define PMIC_LP8764X_GPIO5_PIN (5U) |
#define PMIC_LP8764X_GPIO6_PIN (6U) |
#define PMIC_LP8764X_GPIO7_PIN (7U) |
#define PMIC_LP8764X_GPIO8_PIN (8U) |
#define PMIC_LP8764X_GPIO9_PIN (9U) |
#define PMIC_LP8764X_GPIO10_PIN (10U) |
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO (0U) |
Used to configure GPIO Pin Function. Valid for all GPIO Pins.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO1_EN_DRV (1U) |
Used to configure EN_DRV Pin Function. Valid only for GPIO1 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO2_SCL_I2C2 (1U) |
Used to configure SCL_I2C2 Pin Function. Valid only for GPIO2 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO3_SDA_I2C2 (1U) |
Used to configure SDA_I2C2 Pin Function. Valid only for GPIO3 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO4_ENABLE (1U) |
Used to configure ENABLE Pin Function. Valid only for GPIO4 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO5_SYNCCLKIN (1U) |
Used to configure SYNCCLKIN Pin Function. Valid only for GPIO5 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO6_GPIO7_NERR_MCU (1U) |
Used to configure nERR_MCU Pin Function. Valid only for GPIO7 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO8_SCLK_SPMI (1U) |
Used to configure SCLK_SPMI Pin Function. Valid only for GPIO8 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO9_SDATA_SPMI (1U) |
Used to configure SDATA_SPMI Pin Function. Valid only for GPIO9 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO10_NRSTOUT (1U) |
Used to configure nRSTOUT Pin Function. Valid only for GPIO10 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO1_GPIO10_NRSTOUT_SOC (2U) |
Used to configure nRSTOUT_SOC Pin Function. Valid only for GPIO1 and GPIO10 Pins.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO2_CS_SPI (2U) |
Used to configure CS_SPI Pin Function. Valid only for GPIO2 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO3_SDO_SPI (2U) |
Used to configure SDO_SPI Pin Function. Valid only for GPIO3 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO4_TRIG_WDOG (2U) |
Used to configure TRIG_WDOG Pin Function. Valid only for GPIO4 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO5_GPIO6_SYNCCLKOUT (2U) |
Used to configure SYNCCLKOUT Pin Function. Valid only for GPIO5 and GPIO6 Pins.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO7_REFOUT (2U) |
Used to configure REFOUT Pin Function. Valid only for GPIO7 Pins.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO8_VMON2 (2U) |
Used to configure VMON2 Pin Function. Valid only for GPIO8 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO9_PGOOD (2U) |
Used to configure PGOOD Pin Function. Valid only for GPIO9 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO1_GPIO6_PGOOD (3U) |
Used to configure PGOOD Pin Function. Valid only for GPIO1 and GPIO6 Pins.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO2_TRIG_WDOG (3U) |
Used to configure TRIG_WDOG Pin Function. Valid only for GPIO2 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO4_BUCK1_VMON (3U) |
Used to configure BUCK1_VMON Pin Function. Valid only for GPIO4 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO5_NRSTOUT_SOC (3U) |
Used to configure nRSTOUT_SOC Pin Function. Valid only for GPIO5 Pins.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO7_VMON1 (3U) |
Used to configure VMON1 Pin Function. Valid only for GPIO7 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_GPIO9_SYNCCLKIN (3U) |
Used to configure SYNCCLKIN Pin Function. Valid only for GPIO9 Pin.
#define PMIC_LP8764X_GPIO_PINFUNC_NSLEEP1 (4U) |
Used to configure NSLEEP1 Pin Function. Valid only for GPIO1 to GPIO10 Pins.
#define PMIC_LP8764X_GPIO_PINFUNC_NSLEEP2 (5U) |
Used to configure NSLEEP2 Pin Function. Valid only for GPIO1 to GPIO10 Pins.
#define PMIC_LP8764X_GPIO_PINFUNC_WKUP1 (6U) |
Used to configure WKUP1 Pin Function. Valid only for GPIO1 to GPIO10 Pins.
#define PMIC_LP8764X_GPIO_PINFUNC_WKUP2 (7U) |
Used to configure WKUP2 Pin Function. Valid only for GPIO1 to GPIO10 Pins.
int32_t Pmic_gpioSetConfiguration | ( | Pmic_CoreHandle_t * | pPmicCoreHandle, |
const uint8_t | pin, | ||
const Pmic_GpioCfg_t | gpioCfg | ||
) |
API to set PMIC GPIO configuration.
Requirement: REQ_TAG(PDK-5808), REQ_TAG(PDK-5844), REQ_TAG(PDK-9111), REQ_TAG(PDK-9157) Design: did_pmic_gpio_cfg_readback, did_pmic_lpstandby_wkup_cfg
This function is used to set the required configuration for the specified GPIO pin when corresponding validParam bit field is set in the Pmic_GpioCfg_t For more information \ref Pmic_GpioCfg_t
pPmicCoreHandle | [IN] PMIC Interface Handle. |
pin | [IN] PMIC GPIO pin number. Valid values for TPS6594x Leo Device Pmic_Tps6594xLeo_GpioPin. Valid values for LP8764x HERA Device Pmic_Lp8764xHera_GpioPin. |
gpioCfg | [IN] Set required configuration for the specified GPIO pin. |
int32_t Pmic_gpioGetConfiguration | ( | Pmic_CoreHandle_t * | pPmicCoreHandle, |
const uint8_t | pin, | ||
Pmic_GpioCfg_t * | pGpioCfg | ||
) |
API to get PMIC GPIO configuration.
Requirement: REQ_TAG(PDK-5808) Design: did_pmic_gpio_cfg_readback
This function is used to read the configuration for the specified GPIO pin when corresponding validParam bit field is set in the Pmic_GpioCfg_t For more information \ref Pmic_GpioCfg_t
pPmicCoreHandle | [IN] PMIC Interface Handle |
pin | [IN] PMIC GPIO pin number. Valid values for TPS6594x Leo Device Pmic_Tps6594xLeo_GpioPin. Valid values for LP8764x HERA Device Pmic_Lp8764xHera_GpioPin. |
pGpioCfg | [IN/OUT] Pointer to store specified GPIO pin configuration |
int32_t Pmic_gpioSetValue | ( | Pmic_CoreHandle_t * | pPmicCoreHandle, |
const uint8_t | pin, | ||
const uint8_t | pinValue | ||
) |
API to set PMIC GPIO value.
Requirement: REQ_TAG(PDK-5808), REQ_TAG(PDK-9111) Design: did_pmic_gpio_cfg_readback
This function is used to configure the signal level of the specified GPIO pin.
pPmicCoreHandle | [IN] PMIC Interface Handle. |
pin | [IN] PMIC GPIO pin number. Valid values for TPS6594x Leo Device Pmic_Tps6594xLeo_GpioPin. Valid values for LP8764x HERA Device Pmic_Lp8764xHera_GpioPin. |
pinValue | [IN] PMIC GPIO signal level High/Low to be configured. Valid values Pmic_Gpio_SignalLvl. |
int32_t Pmic_gpioGetValue | ( | Pmic_CoreHandle_t * | pPmicCoreHandle, |
const uint8_t | pin, | ||
uint8_t * | pPinValue | ||
) |
API to get PMIC GPIO value.
Requirement: REQ_TAG(PDK-5808) Design: did_pmic_gpio_cfg_readback
This function is used to read the signal level of the gpio pin
pPmicCoreHandle | [IN] PMIC Interface Handle |
pin | [IN] PMIC GPIO pin number. Valid values for TPS6594x Leo Device Pmic_Tps6594xLeo_GpioPin. Valid values for LP8764x HERA Device Pmic_Lp8764xHera_GpioPin. |
pPinValue | [OUT] To store PMIC GPIO signal level High/Low. Valid values Pmic_Gpio_SignalLvl |
int32_t Pmic_gpioSetIntr | ( | Pmic_CoreHandle_t * | pPmicCoreHandle, |
const uint8_t | pin, | ||
const uint8_t | intrType, | ||
const uint8_t | maskPol | ||
) |
API to enable/disable GPIO interrupt.
Requirement: REQ_TAG(PDK-5808), REQ_TAG(PDK-9159), REQ_TAG(PDK-9329) Design: did_pmic_gpio_cfg_readback
This function is used to enable/disable GPIO pin Interrupts
pPmicCoreHandle | [IN] PMIC Interface Handle. |
pin | [IN] PMIC GPIO number. Valid values for TPS6594x Leo Device Pmic_Tps6594xLeo_GpioPin. Valid values for LP8764x HERA Device Pmic_Lp8764xHera_GpioPin. |
intrType | [IN] Interrupt type Pmic_GpioInterruptCfg |
maskPol | [IN] FSM trigger masking polarity select for GPIO Valid values refer Pmic_GpioInterruptPolCfg. |
int32_t Pmic_gpioSetNPwronEnablePinConfiguration | ( | Pmic_CoreHandle_t * | pPmicCoreHandle, |
const Pmic_GpioCfg_t | gpioCfg | ||
) |
API to set configuration for NPWRON/Enable pin.
Requirement: REQ_TAG(PDK-5808), REQ_TAG(PDK-9111), REQ_TAG(PDK-9162) Design: did_pmic_gpio_cfg_readback
This function is used to set the required configuration for the NPWRON OR ENABLE pin when corresponding validParam bit field is set in the Pmic_GpioCfg_t For more information \ref Pmic_GpioCfg_t NPWRON is valid only for TPS6594x Leo Device
pPmicCoreHandle | [IN] PMIC Interface Handle |
gpioCfg | [IN] Set NPWRON or ENABLE GPIO pin configuration |
int32_t Pmic_gpioGetNPwronEnablePinConfiguration | ( | Pmic_CoreHandle_t * | pPmicCoreHandle, |
Pmic_GpioCfg_t * | pGpioCfg | ||
) |
API to get configuration for NPWRON/Enable pin.
Requirement: REQ_TAG(PDK-5808) Design: did_pmic_gpio_cfg_readback
This function is used to read the configuration for the NPWRON OR ENABLE pin when corresponding validParam bit field is set in the Pmic_GpioCfg_t For more information \ref Pmic_GpioCfg_t NPWRON is valid only for TPS6594x Leo Device
pPmicCoreHandle | [IN] PMIC Interface Handle |
pGpioCfg | [IN/OUT] Pointer to store NPWRON OR ENABLE GPIO pin configuration |
int32_t Pmic_gpioTps6594xNPwronPinGetValue | ( | Pmic_CoreHandle_t * | pPmicCoreHandle, |
uint8_t * | pPinValue | ||
) |
API to get PMIC GPIO NPWRON/Enable pin value.
Requirement: REQ_TAG(PDK-9124) Design: did_pmic_gpio_cfg_readback
This function is used to read the signal level of the NPWRON/Enable pin.
pPmicCoreHandle | [IN] PMIC Interface Handle |
pPinValue | [OUT] Pointer to store PMIC GPIO signal level High/Low. Valid values Pmic_Gpio_SignalLvl |