Functions | |
void | GPIO_setAsOutputPin (uint8_t selectedPort, uint16_t selectedPins) |
This function configures the selected Pin as output pin. More... | |
void | GPIO_setAsInputPin (uint8_t selectedPort, uint16_t selectedPins) |
This function configures the selected Pin as input pin. More... | |
void | GPIO_setAsPeripheralModuleFunctionOutputPin (uint8_t selectedPort, uint16_t selectedPins, uint8_t mode) |
This function configures the peripheral module function in the output direction for the selected pin. More... | |
void | GPIO_setAsPeripheralModuleFunctionInputPin (uint8_t selectedPort, uint16_t selectedPins, uint8_t mode) |
This function configures the peripheral module function in the input direction for the selected pin. More... | |
void | GPIO_setOutputHighOnPin (uint8_t selectedPort, uint16_t selectedPins) |
This function sets output HIGH on the selected Pin. More... | |
void | GPIO_setOutputLowOnPin (uint8_t selectedPort, uint16_t selectedPins) |
This function sets output LOW on the selected Pin. More... | |
void | GPIO_toggleOutputOnPin (uint8_t selectedPort, uint16_t selectedPins) |
This function toggles the output on the selected Pin. More... | |
void | GPIO_setAsInputPinWithPullDownResistor (uint8_t selectedPort, uint16_t selectedPins) |
This function sets the selected Pin in input Mode with Pull Down resistor. More... | |
void | GPIO_setAsInputPinWithPullUpResistor (uint8_t selectedPort, uint16_t selectedPins) |
This function sets the selected Pin in input Mode with Pull Up resistor. More... | |
uint8_t | GPIO_getInputPinValue (uint8_t selectedPort, uint16_t selectedPins) |
This function gets the input value on the selected pin. More... | |
void | GPIO_enableInterrupt (uint8_t selectedPort, uint16_t selectedPins) |
This function enables the port interrupt on the selected pin. More... | |
void | GPIO_disableInterrupt (uint8_t selectedPort, uint16_t selectedPins) |
This function disables the port interrupt on the selected pin. More... | |
uint16_t | GPIO_getInterruptStatus (uint8_t selectedPort, uint16_t selectedPins) |
This function gets the interrupt status of the selected pin. More... | |
void | GPIO_clearInterrupt (uint8_t selectedPort, uint16_t selectedPins) |
This function clears the interrupt flag on the selected pin. More... | |
void | GPIO_selectInterruptEdge (uint8_t selectedPort, uint16_t selectedPins, uint8_t edgeSelect) |
This function selects on what edge the port interrupt flag should be set for a transition. More... | |
void GPIO_clearInterrupt | ( | uint8_t | selectedPort, |
uint16_t | selectedPins | ||
) |
This function clears the interrupt flag on the selected pin.
This function clears the interrupt flag on the selected pin. Please refer to family user's guide for available ports with interrupt capability.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Mask value is the logical OR of any of the following:
|
Modified bits of PxIFG register.
void GPIO_disableInterrupt | ( | uint8_t | selectedPort, |
uint16_t | selectedPins | ||
) |
This function disables the port interrupt on the selected pin.
This function disables the port interrupt on the selected pin. Please refer to family user's guide for available ports with interrupt capability.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Mask value is the logical OR of any of the following:
|
Modified bits of PxIE register.
void GPIO_enableInterrupt | ( | uint8_t | selectedPort, |
uint16_t | selectedPins | ||
) |
This function enables the port interrupt on the selected pin.
This function enables the port interrupt on the selected pin. Please refer to family user's guide for available ports with interrupt capability.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Mask value is the logical OR of any of the following:
|
Modified bits of PxIE register.
uint8_t GPIO_getInputPinValue | ( | uint8_t | selectedPort, |
uint16_t | selectedPins | ||
) |
This function gets the input value on the selected pin.
This function gets the input value on the selected pin.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Valid values are:
|
uint16_t GPIO_getInterruptStatus | ( | uint8_t | selectedPort, |
uint16_t | selectedPins | ||
) |
This function gets the interrupt status of the selected pin.
This function gets the interrupt status of the selected pin. Please refer to family user's guide for available ports with interrupt capability.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Mask value is the logical OR of any of the following:
|
void GPIO_selectInterruptEdge | ( | uint8_t | selectedPort, |
uint16_t | selectedPins, | ||
uint8_t | edgeSelect | ||
) |
This function selects on what edge the port interrupt flag should be set for a transition.
This function selects on what edge the port interrupt flag should be set for a transition. Values for edgeSelect should be GPIO_LOW_TO_HIGH_TRANSITION or GPIO_HIGH_TO_LOW_TRANSITION. Please refer to family user's guide for available ports with interrupt capability.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Mask value is the logical OR of any of the following:
|
edgeSelect | specifies what transition sets the interrupt flag Valid values are:
|
Modified bits of PxIES register.
void GPIO_setAsInputPin | ( | uint8_t | selectedPort, |
uint16_t | selectedPins | ||
) |
This function configures the selected Pin as input pin.
This function selected pins on a selected port as input pins.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Mask value is the logical OR of any of the following:
|
Modified bits of PxDIR register, bits of PxREN register and bits of PxSEL register.
void GPIO_setAsInputPinWithPullDownResistor | ( | uint8_t | selectedPort, |
uint16_t | selectedPins | ||
) |
This function sets the selected Pin in input Mode with Pull Down resistor.
This function sets the selected Pin in input Mode with Pull Down resistor.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Mask value is the logical OR of any of the following:
|
Modified bits of PxDIR register, bits of PxOUT register and bits of PxREN register.
void GPIO_setAsInputPinWithPullUpResistor | ( | uint8_t | selectedPort, |
uint16_t | selectedPins | ||
) |
This function sets the selected Pin in input Mode with Pull Up resistor.
This function sets the selected Pin in input Mode with Pull Up resistor.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Mask value is the logical OR of any of the following:
|
Modified bits of PxDIR register, bits of PxOUT register and bits of PxREN register.
void GPIO_setAsOutputPin | ( | uint8_t | selectedPort, |
uint16_t | selectedPins | ||
) |
This function configures the selected Pin as output pin.
This function selected pins on a selected port as output pins.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Mask value is the logical OR of any of the following:
|
Modified bits of PxDIR register and bits of PxSEL register.
void GPIO_setAsPeripheralModuleFunctionInputPin | ( | uint8_t | selectedPort, |
uint16_t | selectedPins, | ||
uint8_t | mode | ||
) |
This function configures the peripheral module function in the input direction for the selected pin.
This function configures the peripheral module function in the input direction for the selected pin for either primary, secondary or ternary module function modes. Note that MSP430F5xx/6xx family doesn't support these function modes.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Mask value is the logical OR of any of the following:
|
mode | is the specified mode that the pin should be configured for the module function. Valid values are:
|
Modified bits of PxDIR register and bits of PxSEL register.
void GPIO_setAsPeripheralModuleFunctionOutputPin | ( | uint8_t | selectedPort, |
uint16_t | selectedPins, | ||
uint8_t | mode | ||
) |
This function configures the peripheral module function in the output direction for the selected pin.
This function configures the peripheral module function in the output direction for the selected pin for either primary, secondary or ternary module function modes. Note that MSP430F5xx/6xx family doesn't support these function modes.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Mask value is the logical OR of any of the following:
|
mode | is the specified mode that the pin should be configured for the module function. Valid values are:
|
Modified bits of PxDIR register and bits of PxSEL register.
void GPIO_setOutputHighOnPin | ( | uint8_t | selectedPort, |
uint16_t | selectedPins | ||
) |
This function sets output HIGH on the selected Pin.
This function sets output HIGH on the selected port's pin.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Mask value is the logical OR of any of the following:
|
Modified bits of PxOUT register.
void GPIO_setOutputLowOnPin | ( | uint8_t | selectedPort, |
uint16_t | selectedPins | ||
) |
This function sets output LOW on the selected Pin.
This function sets output LOW on the selected port's pin.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Mask value is the logical OR of any of the following:
|
Modified bits of PxOUT register.
void GPIO_toggleOutputOnPin | ( | uint8_t | selectedPort, |
uint16_t | selectedPins | ||
) |
This function toggles the output on the selected Pin.
This function toggles the output on the selected port's pin.
selectedPort | is the selected port. Valid values are:
|
selectedPins | is the specified pin in the selected port. Mask value is the logical OR of any of the following:
|
Modified bits of PxOUT register.