3.2.14.3 DIAG_GPIO_OutputDriveStrength
Returns the status of the IO_PORTS_OUTPUT_DRIVE diagnostic
This function checks if the output drive strength can be configured as normal/stronger for a GPIO.
It performs the following operations:
1. Configures the port pin to output.
2. Sets the output drive strength of a port pin to normal/stronger and confirms its status by reading appropriate registers.
DIAG_TEST_STATUS
DIAG_GPIO_OutputDriveStrength
(
DIAG_GPIO_PORT_INDEX port,
DIAG_GPIO_PORT_PIN pin,
DIAG_GPIO_OUTPUT_DRIVE_STRENGTH strength
);
Diagnostic verifies the following faults do not exist
- Drive strength feature is not working properly
Operating Mode
- Interface can be used at POST and ‘On Demand’
Precondition
- none
Parameters
- port - gpio port
- pin - gpio pin
- strength - enum for drive strength
Returns
- DIAG_STATUS
