NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip
PINSEL_CFG_Type Struct Reference
[PINSEL_Public_Types]
Pin configuration structure. More...
#include <lpc17xx_pinsel.h>
Data Fields | |
uint8_t | Portnum |
Port Number, should be PINSEL_PORT_x, where x should be in range from 0 to 4. | |
uint8_t | Pinnum |
Pin Number, should be PINSEL_PIN_x, where x should be in range from 0 to 31. | |
uint8_t | Funcnum |
Function Number, should be PINSEL_FUNC_x, where x should be in range from 0 to 3. | |
uint8_t | Pinmode |
Pin Mode, should be:
| |
uint8_t | OpenDrain |
OpenDrain mode, should be:
|
Detailed Description
Pin configuration structure.
Definition at line 160 of file lpc17xx_pinsel.h.
Field Documentation
uint8_t Funcnum |
Function Number, should be PINSEL_FUNC_x, where x should be in range from 0 to 3.
Definition at line 166 of file lpc17xx_pinsel.h.
uint8_t OpenDrain |
OpenDrain mode, should be:
- PINSEL_PINMODE_NORMAL: Pin is in the normal (not open drain) mode
- PINSEL_PINMODE_OPENDRAIN: Pin is in the open drain mode.
Definition at line 172 of file lpc17xx_pinsel.h.
uint8_t Pinmode |
Pin Mode, should be:
- PINSEL_PINMODE_PULLUP: Internal pull-up resistor
- PINSEL_PINMODE_TRISTATE: Tri-state
- PINSEL_PINMODE_PULLDOWN: Internal pull-down resistor.
Definition at line 168 of file lpc17xx_pinsel.h.
uint8_t Pinnum |
Pin Number, should be PINSEL_PIN_x, where x should be in range from 0 to 31.
Definition at line 164 of file lpc17xx_pinsel.h.
uint8_t Portnum |
Port Number, should be PINSEL_PORT_x, where x should be in range from 0 to 4.
Definition at line 162 of file lpc17xx_pinsel.h.
Generated on Tue Jul 12 2022 17:06:03 by 1.7.2