C:/nxpdrv/LPC1700CMSIS/Drivers/include/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.
Data Structures | |
struct | GPIO_Byte_TypeDef |
Fast GPIO port byte type definition. More... | |
struct | GPIO_HalfWord_TypeDef |
Fast GPIO port half-word type definition. More... | |
Defines | |
#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) |
Set Direction for GPIO port. | |
void | GPIO_SetValue (uint8_t portNum, uint32_t bitValue) |
Set Value for bits that have output direction on GPIO port. | |
void | GPIO_ClearValue (uint8_t portNum, uint32_t bitValue) |
Clear Value for bits that have output direction on GPIO port. | |
uint32_t | GPIO_ReadValue (uint8_t portNum) |
Read Current state on port pin that have input direction of GPIO. | |
void | FIO_SetDir (uint8_t portNum, uint32_t bitValue, uint8_t dir) |
The same with GPIO_SetDir(). | |
void | FIO_SetValue (uint8_t portNum, uint32_t bitValue) |
The same with GPIO_SetValue(). | |
void | FIO_ClearValue (uint8_t portNum, uint32_t bitValue) |
The same with GPIO_ClearValue(). | |
uint32_t | FIO_ReadValue (uint8_t portNum) |
The same with GPIO_ReadValue(). | |
void | FIO_SetMask (uint8_t portNum, uint32_t bitValue, uint8_t maskValue) |
Set mask value for bits in FIO port. | |
void | FIO_HalfWordSetDir (uint8_t portNum, uint8_t halfwordNum, uint16_t bitValue, uint8_t dir) |
Set direction for FIO port in halfword accessible style. | |
void | FIO_HalfWordSetMask (uint8_t portNum, uint8_t halfwordNum, uint16_t bitValue, uint8_t maskValue) |
Set mask value for bits in FIO port in halfword accessible style. | |
void | FIO_HalfWordSetValue (uint8_t portNum, uint8_t halfwordNum, uint16_t bitValue) |
Set bits for FIO port in halfword accessible style. | |
void | FIO_HalfWordClearValue (uint8_t portNum, uint8_t halfwordNum, uint16_t bitValue) |
Clear bits for FIO port in halfword accessible style. | |
uint16_t | FIO_HalfWordReadValue (uint8_t portNum, uint8_t halfwordNum) |
Read Current state on port pin that have input direction of GPIO in halfword accessible style. | |
void | FIO_ByteSetDir (uint8_t portNum, uint8_t byteNum, uint8_t bitValue, uint8_t dir) |
Set direction for FIO port in byte accessible style. | |
void | FIO_ByteSetMask (uint8_t portNum, uint8_t byteNum, uint8_t bitValue, uint8_t maskValue) |
Set mask value for bits in FIO port in byte accessible style. | |
void | FIO_ByteSetValue (uint8_t portNum, uint8_t byteNum, uint8_t bitValue) |
Set bits for FIO port in byte accessible style. | |
void | FIO_ByteClearValue (uint8_t portNum, uint8_t byteNum, uint8_t bitValue) |
Clear bits for FIO port in byte accessible style. | |
uint8_t | FIO_ByteReadValue (uint8_t portNum, uint8_t byteNum) |
Read Current state on port pin that have input direction of GPIO in byte accessible style. |
Detailed Description
: Contains all macro definitions and function prototypes support for GPIO firmware library on LPC17xx
- Version:
- : 1.0
- Date:
- : 23. Apr. 2009
- Author:
- : HieuNguyen
Definition in file lpc17xx_gpio.h.
Generated on Mon Feb 8 10:01:39 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by 1.5.9