MSP430 DriverLib for MSP430FR57xx Devices  2.10.00.09
 All Data Structures Functions Variables Modules Pages
gpio

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...
 

Detailed Description

Function Documentation

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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Mask value is the logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15

Modified bits of PxIFG register.

Returns
None
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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Mask value is the logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15

Modified bits of PxIE register.

Returns
None
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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Mask value is the logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15

Modified bits of PxIE register.

Returns
None
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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15
Returns
One of the following:
  • GPIO_INPUT_PIN_HIGH
  • GPIO_INPUT_PIN_LOW
    indicating the status of the pin
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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Mask value is the logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15
Returns
Logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15
    indicating the interrupt status of the selected pins [Default: 0]
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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Mask value is the logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15
edgeSelectspecifies what transition sets the interrupt flag Valid values are:
  • GPIO_HIGH_TO_LOW_TRANSITION
  • GPIO_LOW_TO_HIGH_TRANSITION

Modified bits of PxIES register.

Returns
None
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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Mask value is the logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15

Modified bits of PxDIR register, bits of PxREN register and bits of PxSEL register.

Returns
None
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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Mask value is the logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15

Modified bits of PxDIR register, bits of PxOUT register and bits of PxREN register.

Returns
None
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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Mask value is the logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15

Modified bits of PxDIR register, bits of PxOUT register and bits of PxREN register.

Returns
None
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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Mask value is the logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15

Modified bits of PxDIR register and bits of PxSEL register.

Returns
None
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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Mask value is the logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15
modeis the specified mode that the pin should be configured for the module function. Valid values are:
  • GPIO_PRIMARY_MODULE_FUNCTION
  • GPIO_SECONDARY_MODULE_FUNCTION
  • GPIO_TERNARY_MODULE_FUNCTION

Modified bits of PxDIR register and bits of PxSEL register.

Returns
None
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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Mask value is the logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15
modeis the specified mode that the pin should be configured for the module function. Valid values are:
  • GPIO_PRIMARY_MODULE_FUNCTION
  • GPIO_SECONDARY_MODULE_FUNCTION
  • GPIO_TERNARY_MODULE_FUNCTION

Modified bits of PxDIR register and bits of PxSEL register.

Returns
None
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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Mask value is the logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15

Modified bits of PxOUT register.

Returns
None
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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Mask value is the logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15

Modified bits of PxOUT register.

Returns
None
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.

Parameters
selectedPortis the selected port. Valid values are:
  • GPIO_PORT_P1
  • GPIO_PORT_P2
  • GPIO_PORT_P3
  • GPIO_PORT_P4
  • GPIO_PORT_P5
  • GPIO_PORT_P6
  • GPIO_PORT_P7
  • GPIO_PORT_P8
  • GPIO_PORT_P9
  • GPIO_PORT_P10
  • GPIO_PORT_P11
  • GPIO_PORT_PA
  • GPIO_PORT_PB
  • GPIO_PORT_PC
  • GPIO_PORT_PD
  • GPIO_PORT_PE
  • GPIO_PORT_PF
  • GPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Mask value is the logical OR of any of the following:
  • GPIO_PIN0
  • GPIO_PIN1
  • GPIO_PIN2
  • GPIO_PIN3
  • GPIO_PIN4
  • GPIO_PIN5
  • GPIO_PIN6
  • GPIO_PIN7
  • GPIO_PIN8
  • GPIO_PIN9
  • GPIO_PIN10
  • GPIO_PIN11
  • GPIO_PIN12
  • GPIO_PIN13
  • GPIO_PIN14
  • GPIO_PIN15

Modified bits of PxOUT register.

Returns
None

Copyright 2015, Texas Instruments Incorporated