uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lpc17xx_gpio.h File Reference

Contains all macro definitions and function prototypes support for GPIO firmware library on LPC17xx. More...

#include "LPC17xx.h"
#include "lpc_types.h"

Go to the source code of this file.

Classes

struct  GPIO_Byte_TypeDef
 Fast GPIO port byte type definition. More...
 
struct  GPIO_HalfWord_TypeDef
 Fast GPIO port half-word type definition. More...
 

Macros

#define GPIO0_Byte   ((GPIO_Byte_TypeDef *)(LPC_GPIO0_BASE))
 
#define GPIO1_Byte   ((GPIO_Byte_TypeDef *)(LPC_GPIO1_BASE))
 
#define GPIO2_Byte   ((GPIO_Byte_TypeDef *)(LPC_GPIO2_BASE))
 
#define GPIO3_Byte   ((GPIO_Byte_TypeDef *)(LPC_GPIO3_BASE))
 
#define GPIO4_Byte   ((GPIO_Byte_TypeDef *)(LPC_GPIO4_BASE))
 
#define GPIO0_HalfWord   ((GPIO_HalfWord_TypeDef *)(LPC_GPIO0_BASE))
 
#define GPIO1_HalfWord   ((GPIO_HalfWord_TypeDef *)(LPC_GPIO1_BASE))
 
#define GPIO2_HalfWord   ((GPIO_HalfWord_TypeDef *)(LPC_GPIO2_BASE))
 
#define GPIO3_HalfWord   ((GPIO_HalfWord_TypeDef *)(LPC_GPIO3_BASE))
 
#define GPIO4_HalfWord   ((GPIO_HalfWord_TypeDef *)(LPC_GPIO4_BASE))
 

Functions

void GPIO_SetDir (uint8_t portNum, uint32_t bitValue, uint8_t dir)
 
void GPIO_SetValue (uint8_t portNum, uint32_t bitValue)
 
void GPIO_ClearValue (uint8_t portNum, uint32_t bitValue)
 
uint32_t GPIO_ReadValue (uint8_t portNum)
 
void GPIO_IntCmd (uint8_t portNum, uint32_t bitValue, uint8_t edgeState)
 
FunctionalState GPIO_GetIntStatus (uint8_t portNum, uint32_t pinNum, uint8_t edgeState)
 
void GPIO_ClearInt (uint8_t portNum, uint32_t bitValue)
 
void FIO_SetDir (uint8_t portNum, uint32_t bitValue, uint8_t dir)
 
void FIO_SetValue (uint8_t portNum, uint32_t bitValue)
 
void FIO_ClearValue (uint8_t portNum, uint32_t bitValue)
 
uint32_t FIO_ReadValue (uint8_t portNum)
 
void FIO_SetMask (uint8_t portNum, uint32_t bitValue, uint8_t maskValue)
 
void FIO_IntCmd (uint8_t portNum, uint32_t bitValue, uint8_t edgeState)
 
FunctionalState FIO_GetIntStatus (uint8_t portNum, uint32_t pinNum, uint8_t edgeState)
 
void FIO_ClearInt (uint8_t portNum, uint32_t pinNum)
 
void FIO_HalfWordSetDir (uint8_t portNum, uint8_t halfwordNum, uint16_t bitValue, uint8_t dir)
 
void FIO_HalfWordSetMask (uint8_t portNum, uint8_t halfwordNum, uint16_t bitValue, uint8_t maskValue)
 
void FIO_HalfWordSetValue (uint8_t portNum, uint8_t halfwordNum, uint16_t bitValue)
 
void FIO_HalfWordClearValue (uint8_t portNum, uint8_t halfwordNum, uint16_t bitValue)
 
uint16_t FIO_HalfWordReadValue (uint8_t portNum, uint8_t halfwordNum)
 
void FIO_ByteSetDir (uint8_t portNum, uint8_t byteNum, uint8_t bitValue, uint8_t dir)
 
void FIO_ByteSetMask (uint8_t portNum, uint8_t byteNum, uint8_t bitValue, uint8_t maskValue)
 
void FIO_ByteSetValue (uint8_t portNum, uint8_t byteNum, uint8_t bitValue)
 
void FIO_ByteClearValue (uint8_t portNum, uint8_t byteNum, uint8_t bitValue)
 
uint8_t FIO_ByteReadValue (uint8_t portNum, uint8_t byteNum)
 

Detailed Description

Contains all macro definitions and function prototypes support for GPIO firmware library on LPC17xx.

Version
3.0
Date
18. June. 2010
Author
NXP MCU SW Application Team

Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.

Definition in file lpc17xx_gpio.h.