Defines | Functions
frgpio.h File Reference

Go to the source code of this file.

Defines

#define __MSP430_HAS_PORT1_R__
#define __MSP430_HAS_PORT2_R__
#define __MSP430_HAS_PORTA_R__
#define FRGPIO_PORT_P1   (0x00)
#define FRGPIO_PORT_P2   (0x01)
#define FRGPIO_PORT_P3   (0x00)
#define FRGPIO_PORT_P4   (0x01)
#define FRGPIO_PORT_P5   (0x00)
#define FRGPIO_PORT_P6   (0x01)
#define FRGPIO_PORT_P7   (0x00)
#define FRGPIO_PORT_P8   (0x01)
#define FRGPIO_PORT_P9   (0x00)
#define FRGPIO_PORT_P10   (0x01)
#define FRGPIO_PORT_P11   (0x00)
#define FRGPIO_PORT_PA   (0x02)
#define FRGPIO_PORT_PB   (0x02)
#define FRGPIO_PORT_PC   (0x02)
#define FRGPIO_PORT_PD   (0x02)
#define FRGPIO_PORT_PE   (0x02)
#define FRGPIO_PORT_PF   (0x02)
#define FRGPIO_PORT_PJ   (0x02)
#define FRGPIO_PIN0   (0x0001)
#define FRGPIO_PIN1   (0x0002)
#define FRGPIO_PIN2   (0x0004)
#define FRGPIO_PIN3   (0x0008)
#define FRGPIO_PIN4   (0x0010)
#define FRGPIO_PIN5   (0x0020)
#define FRGPIO_PIN6   (0x0040)
#define FRGPIO_PIN7   (0x0080)
#define FRGPIO_PIN8   (0x0100)
#define FRGPIO_PIN9   (0x0200)
#define FRGPIO_PIN10   (0x0400)
#define FRGPIO_PIN11   (0x0800)
#define FRGPIO_PIN12   (0x1000)
#define FRGPIO_PIN13   (0x2000)
#define FRGPIO_PIN14   (0x4000)
#define FRGPIO_PIN15   (0x8000)
#define FRGPIO_INPUT_PIN_HIGH   (0x01)
#define FRGPIO_INPUT_PIN_LOW   (0x00)
#define FRGPIO_HIGH_TO_LOW_TRANSITION   (0x01)
#define FRGPIO_LOW_TO_HIGH_TRANSITION   (0x00)
#define FRGPIO_PRIMARY_MODULE_FUNCTION   (0x01)
#define FRGPIO_SECONDARY_MODULE_FUNCTION   (0x02)
#define FRGPIO_TERNARY_MODULE_FUNCTION   (0x03)

Functions

void FRGPIO_setAsOutputPin (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPin)
void FRGPIO_setAsInputPin (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPin)
void FRGPIO_setOutputHighOnPin (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPin)
void FRGPIO_setOutputLowOnPin (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPin)
void FRGPIO_toggleOutputOnPin (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPin)
void FRGPIO_setAsInputPinWithPullDownresistor (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPin)
void FRGPIO_setAsInputPinWithPullUpresistor (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPin)
void FRGPIO_enableInterrupt (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins)
void FRGPIO_disableInterrupt (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins)
void FRGPIO_clearInterruptFlag (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins)
unsigned int FRGPIO_getInterruptStatus (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins)
void FRGPIO_interruptEdgeSelect (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPins, unsigned char edgeSelect)
unsigned short FRGPIO_getInputPinValue (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPin)
void FRGPIO_setAsPeripheralModuleFunctionOutputPin (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPin, unsigned char mode)
void FRGPIO_setAsPeripheralModuleFunctionInputPin (unsigned int baseAddress, unsigned char selectedPort, unsigned int selectedPin, unsigned char mode)

Define Documentation

#define __MSP430_HAS_PORT1_R__
#define __MSP430_HAS_PORT2_R__
#define __MSP430_HAS_PORTA_R__
#define FRGPIO_PORT_P1   (0x00)
#define FRGPIO_PORT_P2   (0x01)
#define FRGPIO_PORT_P3   (0x00)
#define FRGPIO_PORT_P4   (0x01)
#define FRGPIO_PORT_P5   (0x00)
#define FRGPIO_PORT_P6   (0x01)
#define FRGPIO_PORT_P7   (0x00)
#define FRGPIO_PORT_P8   (0x01)
#define FRGPIO_PORT_P9   (0x00)
#define FRGPIO_PORT_P10   (0x01)
#define FRGPIO_PORT_P11   (0x00)
#define FRGPIO_PORT_PA   (0x02)
#define FRGPIO_PORT_PB   (0x02)
#define FRGPIO_PORT_PC   (0x02)
#define FRGPIO_PORT_PD   (0x02)
#define FRGPIO_PORT_PE   (0x02)
#define FRGPIO_PORT_PF   (0x02)
#define FRGPIO_PORT_PJ   (0x02)
#define FRGPIO_PIN0   (0x0001)
#define FRGPIO_PIN1   (0x0002)
#define FRGPIO_PIN2   (0x0004)
#define FRGPIO_PIN3   (0x0008)
#define FRGPIO_PIN4   (0x0010)
#define FRGPIO_PIN5   (0x0020)
#define FRGPIO_PIN6   (0x0040)
#define FRGPIO_PIN7   (0x0080)
#define FRGPIO_PIN8   (0x0100)
#define FRGPIO_PIN9   (0x0200)
#define FRGPIO_PIN10   (0x0400)
#define FRGPIO_PIN11   (0x0800)
#define FRGPIO_PIN12   (0x1000)
#define FRGPIO_PIN13   (0x2000)
#define FRGPIO_PIN14   (0x4000)
#define FRGPIO_PIN15   (0x8000)
#define FRGPIO_INPUT_PIN_HIGH   (0x01)

Referenced by FRGPIO_getInputPinValue().

#define FRGPIO_INPUT_PIN_LOW   (0x00)

Referenced by FRGPIO_getInputPinValue().

#define FRGPIO_HIGH_TO_LOW_TRANSITION   (0x01)
#define FRGPIO_LOW_TO_HIGH_TRANSITION   (0x00)
#define FRGPIO_PRIMARY_MODULE_FUNCTION   (0x01)
#define FRGPIO_SECONDARY_MODULE_FUNCTION   (0x02)
#define FRGPIO_TERNARY_MODULE_FUNCTION   (0x03)

Function Documentation

void FRGPIO_setAsOutputPin ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins 
)

This function configures the selected Pin as output pin

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15 Modified registers are PxSEL and PxDIR.
Returns:
None

References ASSERT, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, HWREG, and HWREGB.

void FRGPIO_setAsInputPin ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins 
)

This function configures the selected Pin as input pin

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15 Modified registers are PxSEL, PxREN and PxDIR.
Returns:
None

References ASSERT, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, HWREG, and HWREGB.

void FRGPIO_setOutputHighOnPin ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins 
)

This function sets output HIGH on the selected Pin

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15 Modified registers are PxOUT.
Returns:
None

References ASSERT, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, HWREG, and HWREGB.

void FRGPIO_setOutputLowOnPin ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins 
)

This function sets output LOW on the selected Pin

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15 Modified registers are PxOUT.
Returns:
None

References ASSERT, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, HWREG, and HWREGB.

void FRGPIO_toggleOutputOnPin ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins 
)

This function toggles the output on the selected Pin

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15 Modified registers are PxOUT.
Returns:
None

References ASSERT, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, HWREG, and HWREGB.

void FRGPIO_setAsInputPinWithPullDownresistor ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins 
)

This function sets the selected Pin in input Mode with Pull Down resistor

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15 Modified registers are PxREN, PxOUT and PxDIR.
Returns:
None

References ASSERT, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, HWREG, and HWREGB.

void FRGPIO_setAsInputPinWithPullUpresistor ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins 
)

This function sets the selected Pin in input Mode with Pull Up resistor

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15 Modified registers are PxREN, PxOUT and PxDIR.
Returns:
None

References ASSERT, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, HWREG, and HWREGB.

void FRGPIO_enableInterrupt ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins 
)

This function enables the port interrupt on the selected pin. Note: Not all ports have this capability. Please refer to the device specific datasheet.

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15 Modified registers are PxIE.
Returns:
None

References ASSERT, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, HWREG, and HWREGB.

void FRGPIO_disableInterrupt ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins 
)

This function disables the port interrupt on the selected pin. Note that only Port 1,2, A have this capability

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15 Modified registers are PxIE.
Returns:
None

References ASSERT, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, HWREG, and HWREGB.

void FRGPIO_clearInterruptFlag ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins 
)

This function clears the interrupt flag on the selected pin. Note that only Port 1,2, A have this capability

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15 Modified registers are PxIFG.
Returns:
None

References ASSERT, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, HWREG, and HWREGB.

unsigned int FRGPIO_getInterruptStatus ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins 
)

This function gets the interrupt status of the selected pin. Note that only Port 1,2, A have this capability

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15 Modified registers are PxIFG.
Returns:
Masked state of the interupt

References ASSERT, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, HWREG, and HWREGB.

void FRGPIO_interruptEdgeSelect ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins,
unsigned char  edgeSelect 
)

This function selects on what edge the port interrupt flag should be set for a transition

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15
edgeSelectspecifies what transition sets the interrupt flag Valid values are FRGPIO_HIGH_TO_LOW_TRANSITION, FRGPIO_LOW_TO_HIGH_TRANSITION Modified registers are PxIES.
Returns:
None

References ASSERT, FRGPIO_HIGH_TO_LOW_TRANSITION, FRGPIO_LOW_TO_HIGH_TRANSITION, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, HWREG, and HWREGB.

unsigned short FRGPIO_getInputPinValue ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins 
)

This function gets the input value on the selected pin

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15 Modified registers are PxIN.
Returns:
Input value on Pin - FRGPIO_INPUT_PIN_HIGH, FRGPIO_INPUT_PIN_LOW

References ASSERT, FRGPIO_INPUT_PIN_HIGH, FRGPIO_INPUT_PIN_LOW, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, HWREG, and HWREGB.

void FRGPIO_setAsPeripheralModuleFunctionOutputPin ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins,
unsigned char  mode 
)

This function configures the peripheral module function in the output direction for the selected pin for either primary, secondary or ternary module function modes

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15
modeis the specified mode that the pin should be configured for the module function. Valid values are: FRGPIO_PRIMARY_MODULE_FUNCTION FRGPIO_SECONDARY_MODULE_FUNCTION FRGPIO_TERNARY_MODULE_FUNCTION Modified registers are PxSEL and PxDIR.
Returns:
None

References ASSERT, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, FRGPIO_PRIMARY_MODULE_FUNCTION, FRGPIO_SECONDARY_MODULE_FUNCTION, FRGPIO_TERNARY_MODULE_FUNCTION, HWREG, and HWREGB.

void FRGPIO_setAsPeripheralModuleFunctionInputPin ( unsigned int  baseAddress,
unsigned char  selectedPort,
unsigned int  selectedPins,
unsigned char  mode 
)

This function configures the peripheral module function in the input direction for the selected pin for either primary, secondary or ternary module function modes.

Parameters:
baseAddressis the base address of the GPIO Port Register
selectedPortis the selected port. Valid values are FRGPIO_PORT_P1, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4,FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7,FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ
selectedPinsis the specified pin in the selected port. Valid values are FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7,FRGPIO_PIN8,FRGPIO_PIN9,FRGPIO_PIN10, FRGPIO_PIN11,FRGPIO_PIN12,FRGPIO_PIN13,FRGPIO_PIN14, FRGPIO_PIN15
modeis the specified mode that the pin should be configured for the module function. Valid values are: FRGPIO_PRIMARY_MODULE_FUNCTION FRGPIO_SECONDARY_MODULE_FUNCTION FRGPIO_TERNARY_MODULE_FUNCTION Modified registers are PxSEL and PxDIR.
Returns:
None

References ASSERT, FRGPIO_PIN0, FRGPIO_PIN1, FRGPIO_PIN10, FRGPIO_PIN11, FRGPIO_PIN12, FRGPIO_PIN13, FRGPIO_PIN14, FRGPIO_PIN15, FRGPIO_PIN2, FRGPIO_PIN3, FRGPIO_PIN4, FRGPIO_PIN5, FRGPIO_PIN6, FRGPIO_PIN7, FRGPIO_PIN8, FRGPIO_PIN9, FRGPIO_PORT_P1, FRGPIO_PORT_P10, FRGPIO_PORT_P11, FRGPIO_PORT_P2, FRGPIO_PORT_P3, FRGPIO_PORT_P4, FRGPIO_PORT_P5, FRGPIO_PORT_P6, FRGPIO_PORT_P7, FRGPIO_PORT_P8, FRGPIO_PORT_P9, FRGPIO_PORT_PA, FRGPIO_PORT_PB, FRGPIO_PORT_PC, FRGPIO_PORT_PD, FRGPIO_PORT_PE, FRGPIO_PORT_PF, FRGPIO_PORT_PJ, FRGPIO_PRIMARY_MODULE_FUNCTION, FRGPIO_SECONDARY_MODULE_FUNCTION, FRGPIO_TERNARY_MODULE_FUNCTION, HWREG, and HWREGB.


Copyright 2012, Texas Instruments Incorporated