Руслан Урядинский / libuavcan

Dependents:   UAVCAN UAVCAN_Subscriber

Embed: (wiki syntax)

« Back to documentation index

CHIP: LPC11xx IO Control driver

CHIP: LPC11xx IO Control driver

Data Structures

struct  LPC_IOCON_T
 IO Configuration Unit register block structure. More...

Typedefs

typedef enum CHIP_IOCON_PIO CHIP_IOCON_PIO_T
 LPC11XX I/O Configuration register offset.
typedef enum CHIP_IOCON_PIN_LOC CHIP_IOCON_PIN_LOC_T
 LPC11XX Pin location select.

Enumerations

enum  CHIP_IOCON_PIO
 

LPC11XX I/O Configuration register offset.

More...
enum  CHIP_IOCON_PIN_LOC {
  IOCON_SCKLOC_PIO0_10 = (0xB0), IOCON_SCKLOC_PIO2_11 = (0xB0 | 1), IOCON_SCKLOC_PIO0_6 = (0xB0 | 2), IOCON_DSRLOC_PIO2_1 = (0xB4),
  IOCON_DSRLOC_PIO3_1 = (0xB4 | 1), IOCON_DCDLOC_PIO2_2 = (0xB8), IOCON_DCDLOC_PIO3_2 = (0xB8 | 1), IOCON_RILOC_PIO2_3 = (0xBC),
  IOCON_RILOC_PIO3_3 = (0xBC | 1), IOCON_SSEL1_LOC_PIO2_2 = (0x18), IOCON_SSEL1_LOC_PIO2_4 = (0x18 | 1), IOCON_CT16B0_CAP0_LOC_PIO0_2 = (0xC0),
  IOCON_CT16B0_CAP0_LOC_PIO3_3 = (0xC0 | 1), IOCON_SCK1_LOC_PIO2_1 = (0xC4), IOCON_SCK1_LOC_PIO3_2 = (0xC4 | 1), IOCON_MISO1_LOC_PIO2_2 = (0xC8),
  IOCON_MISO1_LOC_PIO1_10 = (0xC8 | 1), IOCON_MOSI1_LOC_PIO2_3 = (0xCC), IOCON_MOSI1_LOC_PIO1_9 = (0xCC), IOCON_CT326B0_CAP0_LOC_PIO1_5 = (0xD0),
  IOCON_CT326B0_CAP0_LOC_PIO2_9 = (0xD0 | 1), IOCON_U0_RXD_LOC_PIO1_6 = (0xD4), IOCON_U0_RXD_LOC_PIO2_7 = (0xD4 | 1), IOCON_U0_RXD_LOC_PIO3_4 = (0xD4 | 3)
}
 

LPC11XX Pin location select.

More...

Functions

void Chip_IOCON_PinMuxSet (LPC_IOCON_T *pIOCON, uint8_t port, uint8_t pin, uint32_t modefunc)
 Sets I/O Control pin mux.
STATIC INLINE void Chip_IOCON_PinMux (LPC_IOCON_T *pIOCON, uint8_t port, uint8_t pin, uint16_t mode, uint8_t func)
 I/O Control pin mux.
STATIC INLINE void Chip_IOCON_PinMuxSet (LPC_IOCON_T *pIOCON, CHIP_IOCON_PIO_T pin, uint32_t modefunc)
 Sets I/O Control pin mux.
STATIC INLINE void Chip_IOCON_PinMux (LPC_IOCON_T *pIOCON, CHIP_IOCON_PIO_T pin, uint16_t mode, uint8_t func)
 I/O Control pin mux.
STATIC INLINE void Chip_IOCON_PinLocSel (LPC_IOCON_T *pIOCON, CHIP_IOCON_PIN_LOC_T sel)
 Select pin location.

Typedef Documentation

LPC11XX Pin location select.

LPC11XX I/O Configuration register offset.


Enumeration Type Documentation

LPC11XX Pin location select.

Enumerator:
IOCON_SCKLOC_PIO0_10 

Selects SCK0 function in pin location PIO0_10

IOCON_SCKLOC_PIO2_11 

Selects SCK0 function in pin location PIO2_11

IOCON_SCKLOC_PIO0_6 

Selects SCK0 function in pin location PIO0_6

IOCON_DSRLOC_PIO2_1 

Selects DSR function in pin location PIO2_1

IOCON_DSRLOC_PIO3_1 

Selects DSR function in pin location PIO3_1

IOCON_DCDLOC_PIO2_2 

Selects DCD function in pin location PIO2_2

IOCON_DCDLOC_PIO3_2 

Selects DCD function in pin location PIO3_2

IOCON_RILOC_PIO2_3 

Selects RI function in pin location PIO2_3

IOCON_RILOC_PIO3_3 

Selects Ri function in pin location PIO3_3

IOCON_SSEL1_LOC_PIO2_2 

Selects SSEL1 function in pin location PIO2_2

IOCON_SSEL1_LOC_PIO2_4 

Selects SSEL1 function in pin location PIO2_4

IOCON_CT16B0_CAP0_LOC_PIO0_2 

Selects SSEL1 CTB16B0_CAP0 function in pin location PIO0_2

IOCON_CT16B0_CAP0_LOC_PIO3_3 

Selects SSEL1 CTB16B0_CAP0 function in pin location PIO3_3

IOCON_SCK1_LOC_PIO2_1 

Selects SCK1 function in pin location PIO2_1

IOCON_SCK1_LOC_PIO3_2 

Selects SCK1 function in pin location PIO3_2

IOCON_MISO1_LOC_PIO2_2 

Selects MISO1 function in pin location PIO2_2

IOCON_MISO1_LOC_PIO1_10 

Selects MISO1 function in pin location PIO1_10

IOCON_MOSI1_LOC_PIO2_3 

Selects MOSI1 function in pin location PIO2_3

IOCON_MOSI1_LOC_PIO1_9 

Selects MOSI1 function in pin location PIO1_9

IOCON_CT326B0_CAP0_LOC_PIO1_5 

Selects CT32B0_CAP0 function in pin location PIO1_5

IOCON_CT326B0_CAP0_LOC_PIO2_9 

Selects CT32B0_CAP0 function in pin location PIO2_9

IOCON_U0_RXD_LOC_PIO1_6 

Selects U0 RXD function in pin location PIO1_6

IOCON_U0_RXD_LOC_PIO2_7 

Selects U0 RXD function in pin location PIO2_7

IOCON_U0_RXD_LOC_PIO3_4 

Selects U0 RXD function in pin location PIO3_4

Definition at line 112 of file iocon_11xx.h.

LPC11XX I/O Configuration register offset.

Definition at line 57 of file iocon_11xx.h.


Function Documentation

STATIC INLINE void Chip_IOCON_PinLocSel ( LPC_IOCON_T pIOCON,
CHIP_IOCON_PIN_LOC_T  sel 
)

Select pin location.

Parameters:
pIOCON: The base of IOCON peripheral on the chip
sel: location selection
Returns:
Nothing

Definition at line 273 of file iocon_11xx.h.

STATIC INLINE void Chip_IOCON_PinMux ( LPC_IOCON_T pIOCON,
CHIP_IOCON_PIO_T  pin,
uint16_t  mode,
uint8_t  func 
)

I/O Control pin mux.

Parameters:
pIOCON: The base of IOCON peripheral on the chip
pin: GPIO pin to mux
mode: OR'ed values or type IOCON_*
func: Pin function, value of type IOCON_FUNC?
Returns:
Nothing

Definition at line 262 of file iocon_11xx.h.

STATIC INLINE void Chip_IOCON_PinMux ( LPC_IOCON_T pIOCON,
uint8_t  port,
uint8_t  pin,
uint16_t  mode,
uint8_t  func 
)

I/O Control pin mux.

Parameters:
pIOCON: The base of IOCON peripheral on the chip
port: GPIO port to mux
pin: GPIO pin to mux
mode: OR'ed values or type IOCON_*
func: Pin function, value of type IOCON_FUNC?
Returns:
Nothing

Definition at line 235 of file iocon_11xx.h.

STATIC INLINE void Chip_IOCON_PinMuxSet ( LPC_IOCON_T pIOCON,
CHIP_IOCON_PIO_T  pin,
uint32_t  modefunc 
)

Sets I/O Control pin mux.

Parameters:
pIOCON: The base of IOCON peripheral on the chip
pin: GPIO pin to mux
modefunc: OR'ed values or type IOCON_*
Returns:
Nothing

Definition at line 249 of file iocon_11xx.h.

void Chip_IOCON_PinMuxSet ( LPC_IOCON_T pIOCON,
uint8_t  port,
uint8_t  pin,
uint32_t  modefunc 
)

Sets I/O Control pin mux.

Parameters:
pIOCON: The base of IOCON peripheral on the chip
port: GPIO port to mux
pin: GPIO pin to mux
modefunc: OR'ed values or type IOCON_*
Returns:
Nothing