CC3200 Peripheral Driver Library User's Guide
1.2.0
|
Functions | |
void | PinModeSet (unsigned long ulPin, unsigned long ulPinMode) |
unsigned long | PinModeGet (unsigned long ulPin) |
void | PinDirModeSet (unsigned long ulPin, unsigned long ulPinIO) |
unsigned long | PinDirModeGet (unsigned long ulPin) |
void | PinConfigGet (unsigned long ulPin, unsigned long *pulPinStrength, unsigned long *pulPinType) |
void | PinConfigSet (unsigned long ulPin, unsigned long ulPinStrength, unsigned long ulPinType) |
void | PinTypeUART (unsigned long ulPin, unsigned long ulPinMode) |
void | PinTypeI2C (unsigned long ulPin, unsigned long ulPinMode) |
void | PinTypeSPI (unsigned long ulPin, unsigned long ulPinMode) |
void | PinTypeI2S (unsigned long ulPin, unsigned long ulPinMode) |
void | PinTypeTimer (unsigned long ulPin, unsigned long ulPinMode) |
void | PinTypeCamera (unsigned long ulPin, unsigned long ulPinMode) |
void | PinTypeGPIO (unsigned long ulPin, unsigned long ulPinMode, tBoolean bOpenDrain) |
void | PinTypeADC (unsigned long ulPin, unsigned long ulPinMode) |
void | PinTypeSDHost (unsigned long ulPin, unsigned long ulPinMode) |
void PinConfigGet | ( | unsigned long | ulPin, |
unsigned long * | pulPinStrength, | ||
unsigned long * | pulPinType | ||
) |
Gets Pin output drive strength and Type
ulPin | is one of the valid pin |
pulPinStrength | is pointer to storage for output drive strength |
pulPinType | is pinter to storage for pin type |
This function gets the pin type and output drive strength for the pin specified by ulPin parameter. Parameters pulPinStrength and pulPinType corresponds to the values used in PinConfigSet().
void PinConfigSet | ( | unsigned long | ulPin, |
unsigned long | ulPinStrength, | ||
unsigned long | ulPinType | ||
) |
Configure Pin output drive strength and Type
ulPin | is one of the valid pin |
ulPinStrength | is logical OR of valid output drive strengths. |
ulPinType | is one of the valid pin type. |
This function sets the pin type and strength for the pin specified by ulPin parameter.
The parameter ulPinStrength should be one of the following
The parameter ulPinType should be one of the following For standard type
And for Open drain type
unsigned long PinDirModeGet | ( | unsigned long | ulPin | ) |
Gets the direction of a pin.
ulPin | is one of the valid pin. |
This function gets the direction and control mode for a specified pin on the selected GPIO port. The pin can be configured as either an input only or output only, or it can be under hardware control. The type of control and direction are returned as an enumerated data type.
void PinDirModeSet | ( | unsigned long | ulPin, |
unsigned long | ulPinIO | ||
) |
Sets the direction of the specified pin(s).
ulPin | is one of the valid pin. |
ulPinIO | is the pin direction and/or mode. |
This function configures the specified pin(s) as either input only or output only or it configures the pin to be under hardware control.
The parameter ulPinIO is an enumerated data type that can be one of the following values:
where PIN_DIR_MODE_IN specifies that the pin is programmed as a input only, PIN_DIR_MODE_OUT specifies that the pin is programmed output only, and PIN_DIR_MODE_HW specifies that the pin is placed under hardware control.
unsigned long PinModeGet | ( | unsigned long | ulPin | ) |
Gets current pin mux configuration of specified pin.
ulPin | is a valid pin. |
This function get the current configuration of the pin mux.
void PinModeSet | ( | unsigned long | ulPin, |
unsigned long | ulPinMode | ||
) |
Configures pin mux for the specified pin.
ulPin | is a valid pin. |
ulPinMode | is one of the valid mode |
This function configures the pin mux that selects the peripheral function associated with a particular SOC pin. Only one peripheral function at a time can be associated with a pin, and each peripheral function should only be associated with a single pin at a time.
void PinTypeADC | ( | unsigned long | ulPin, |
unsigned long | ulPinMode | ||
) |
Sets the pin mode and configures the pin for use by ADC
ulPin | is one of the valid pin. |
ulPinMode | is one of the valid pin mode. |
The ADC pins must be properly configured for the peripheral to function correctly. This function provides a typical configuration for those pin.
void PinTypeCamera | ( | unsigned long | ulPin, |
unsigned long | ulPinMode | ||
) |
Sets the pin mode and configures the pin for use by Camera peripheral
ulPin | is one of the valid pin. |
ulPinMode | is one of the valid pin mode. |
The Camera pins must be properly configured for the peripheral to function correctly. This function provides a typical configuration for those pin.
void PinTypeGPIO | ( | unsigned long | ulPin, |
unsigned long | ulPinMode, | ||
tBoolean | bOpenDrain | ||
) |
Sets the pin mode and configures the pin for use by GPIO peripheral
ulPin | is one of the valid pin. |
ulPinMode | is one of the valid pin mode. |
bOpenDrain | is one to decide either OpenDrain or STD |
The GPIO pins must be properly configured for the peripheral to function correctly. This function provides a typical configuration for those pin.
void PinTypeI2C | ( | unsigned long | ulPin, |
unsigned long | ulPinMode | ||
) |
Sets the pin mode and configures the pin for use by I2C peripheral
ulPin | is one of the valid pin. |
ulPinMode | is one of the valid pin mode. |
The I2C pins must be properly configured for the peripheral to function correctly. This function provides a typical configuration for the pin.
void PinTypeI2S | ( | unsigned long | ulPin, |
unsigned long | ulPinMode | ||
) |
Sets the pin mode and configures the pin for use by I2S peripheral
ulPin | is one of the valid pin. |
ulPinMode | is one of the valid pin mode. |
The I2S pins must be properly configured for the peripheral to function correctly. This function provides a typical configuration for those pin.
void PinTypeSDHost | ( | unsigned long | ulPin, |
unsigned long | ulPinMode | ||
) |
Sets the pin mode and configures the pin for use by SD Host peripheral
ulPin | is one of the valid pin. |
ulPinMode | is one of the valid pin mode. |
The MMC pins must be properly configured for the peripheral to function correctly. This function provides a typical configuration for those pin.
void PinTypeSPI | ( | unsigned long | ulPin, |
unsigned long | ulPinMode | ||
) |
Sets the pin mode and configures the pin for use by SPI peripheral
ulPin | is one of the valid pin. |
ulPinMode | is one of the valid pin mode. |
The SPI pins must be properly configured for the peripheral to function correctly. This function provides a typical configuration for those pin.
void PinTypeTimer | ( | unsigned long | ulPin, |
unsigned long | ulPinMode | ||
) |
Sets the pin mode and configures the pin for use by Timer peripheral
ulPin | is one of the valid pin. |
ulPinMode | is one of the valid pin mode. |
The timer PWM pins must be properly configured for the Timer peripheral to function correctly. This function provides a typical configuration for those pin; other configurations may work as well depending upon the board setup (for example, using the on-chip pull-ups).
void PinTypeUART | ( | unsigned long | ulPin, |
unsigned long | ulPinMode | ||
) |
Sets the pin mode and configures the pin for use by UART peripheral
ulPin | is one of the valid pin. |
ulPinMode | is one of the valid pin mode. |
The UART pins must be properly configured for the peripheral to function correctly. This function provides a typical configuration for those pin(s); other configurations may work as well depending upon the board setup (for example, using the on-chip pull-ups).