| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
iocon_8xx.h File Reference

Go to the source code of this file.

## Data Structures
struct | LPC_IOCON_T
| IOCON register block. More...

## Enumerations
enum | CHIP_PINx_T { PIO0 = 0, PIO1 = 1, PIO2 = 2, PIO3 = 3, PIO4 = 4, PIO5 = 5, PIO6 = 6, PIO7 = 7, PIO8 = 8, PIO9 = 9, PIO10 = 10, PIO11 = 11, PIO12 = 12, PIO13 = 13, PIO14 = 14, PIO15 = 15, PIO16 = 16, PIO17 = 17, PIO_NUL = 0xFF }
| IOCON Pin Numbers enum. More...
enum | CHIP_PIN_MODE_T { PIN_MODE_INACTIVE = 0, PIN_MODE_PULLDN = 1, PIN_MODE_PULLUP = 2, PIN_MODE_REPEATER = 3 }
| IOCON Pin Modes enum. More...
enum | CHIP_PIN_SMODE_T { PIN_SMODE_BYPASS = 0, PIN_SMODE_CYC1 = 1, PIN_SMODE_CYC2 = 2, PIN_SMODE_CYC3 = 3 }
| IOCON Digital Filter Sample modes enum. More...
enum | CHIP_PIN_CLKDIV_T { IOCONCLKDIV0 = 0, IOCONCLKDIV1 = 1, IOCONCLKDIV2 = 2, IOCONCLKDIV3 = 3, IOCONCLKDIV4 = 4, IOCONCLKDIV5 = 5, IOCONCLKDIV6 = 6 }
| IOCON Perpipheral Clock divider selction for input filter sampling clock. More...
enum | CHIP_PIN_I2CMODE_T { PIN_I2CMODE_STDFAST = 0, PIN_I2CMODE_GPIO = 1, PIN_I2CMODE_FASTPLUS = 2 }
| IOCON I2C Modes enum (Only for I2C pins PIO0_10 and PIO0_11) More...

## Functions
void | Chip_IOCON_PinSetMode (LPC_IOCON_T *pIOCON, CHIP_PINx_T pin, CHIP_PIN_MODE_T mode)
| Set a function mode (pull-up/pull-down) for a pin.
void | Chip_IOCON_PinSetHysteresis (LPC_IOCON_T *pIOCON, CHIP_PINx_T pin, bool enable)
| Enable or disable the hysteresis for a pin.
void | Chip_IOCON_PinSetInputInverted (LPC_IOCON_T *pIOCON, CHIP_PINx_T pin, bool invert)
| Invert input for a pin.
void | Chip_IOCON_PinSetOpenDrainMode (LPC_IOCON_T *pIOCON, CHIP_PINx_T pin, bool open_drain)
| Sets open-drain mode for a pin.
void | Chip_IOCON_PinSetSampleMode (LPC_IOCON_T *pIOCON, CHIP_PINx_T pin, CHIP_PIN_SMODE_T smode)
| Sets the digital filter sampling mode for a pin.
void | Chip_IOCON_PinSetClockDivisor (LPC_IOCON_T *pIOCON, CHIP_PINx_T pin, CHIP_PIN_CLKDIV_T clkdiv)
| Select peripheral clock divider for input filter sampling clock.
void | Chip_IOCON_PinSetI2CMode (LPC_IOCON_T *pIOCON, CHIP_PINx_T pin, CHIP_PIN_I2CMODE_T mode)
| Set I2C mode for a pin.