PINSEL_Public_Functions
[PINSEL]
Functions | |
void | PINSEL_SetPinFunc (uint8_t portnum, uint8_t pinnum, uint8_t funcnum) |
Setup the pin selection function. | |
void | PINSEL_ConfigTraceFunc (FunctionalState NewState) |
Configure trace function. | |
void | PINSEL_SetResistorMode (uint8_t portnum, uint8_t pinnum, uint8_t modenum) |
Setup resistor mode for each pin. | |
void | PINSEL_SetOpenDrainMode (uint8_t portnum, uint8_t pinnum, uint8_t modenum) |
Setup Open drain mode for each pin. | |
void | PINSEL_SetI2C0Pins (uint8_t i2cPinMode, FunctionalState filterSlewRateEnable) |
Setup I2C0 pins. | |
void | PINSEL_ConfigPin (PINSEL_CFG_Type *PinCfg) |
Configure Pin corresponding to specified parameters passed in the PinCfg. |
Function Documentation
void PINSEL_ConfigPin | ( | PINSEL_CFG_Type * | PinCfg | ) |
Configure Pin corresponding to specified parameters passed in the PinCfg.
- Parameters:
-
[in] PinCfg Pointer to a PINSEL_CFG_Type structure that contains the configuration information for the specified pin.
- Returns:
- None
Definition at line 292 of file lpc17xx_pinsel.c.
void PINSEL_ConfigTraceFunc | ( | FunctionalState | NewState | ) |
Configure trace function.
- Parameters:
-
[in] NewState State of the Trace function configuration, should be one of the following: - ENABLE : Enable Trace Function
- DISABLE : Disable Trace Function
- Returns:
- None
Definition at line 113 of file lpc17xx_pinsel.c.
void PINSEL_SetI2C0Pins | ( | uint8_t | i2cPinMode, | |
FunctionalState | filterSlewRateEnable | |||
) |
Setup I2C0 pins.
- Parameters:
-
[in] i2cPinMode I2C pin mode, should be one of the following: - PINSEL_I2C_Normal_Mode : The standard drive mode
- PINSEL_I2C_Fast_Mode : Fast Mode Plus drive mode
[in] filterSlewRateEnable should be: - ENABLE: Enable filter and slew rate.
- DISABLE: Disable filter and slew rate.
- Returns:
- None
Definition at line 269 of file lpc17xx_pinsel.c.
void PINSEL_SetOpenDrainMode | ( | uint8_t | portnum, | |
uint8_t | pinnum, | |||
uint8_t | modenum | |||
) |
Setup Open drain mode for each pin.
- Parameters:
-
[in] portnum PORT number, should be one of the following: - PINSEL_PORT_0 : Port 0
- PINSEL_PORT_1 : Port 1
- PINSEL_PORT_2 : Port 2
- PINSEL_PORT_3 : Port 3
[in] pinnum Pin number, should be one of the following: - PINSEL_PIN_0 : Pin 0
- PINSEL_PIN_1 : Pin 1
- PINSEL_PIN_2 : Pin 2
- PINSEL_PIN_3 : Pin 3
- PINSEL_PIN_4 : Pin 4
- PINSEL_PIN_5 : Pin 5
- PINSEL_PIN_6 : Pin 6
- PINSEL_PIN_7 : Pin 7
- PINSEL_PIN_8 : Pin 8
- PINSEL_PIN_9 : Pin 9
- PINSEL_PIN_10 : Pin 10
- PINSEL_PIN_11 : Pin 11
- PINSEL_PIN_12 : Pin 12
- PINSEL_PIN_13 : Pin 13
- PINSEL_PIN_14 : Pin 14
- PINSEL_PIN_15 : Pin 15
- PINSEL_PIN_16 : Pin 16
- PINSEL_PIN_17 : Pin 17
- PINSEL_PIN_18 : Pin 18
- PINSEL_PIN_19 : Pin 19
- PINSEL_PIN_20 : Pin 20
- PINSEL_PIN_21 : Pin 21
- PINSEL_PIN_22 : Pin 22
- PINSEL_PIN_23 : Pin 23
- PINSEL_PIN_24 : Pin 24
- PINSEL_PIN_25 : Pin 25
- PINSEL_PIN_26 : Pin 26
- PINSEL_PIN_27 : Pin 27
- PINSEL_PIN_28 : Pin 28
- PINSEL_PIN_29 : Pin 29
- PINSEL_PIN_30 : Pin 30
- PINSEL_PIN_31 : Pin 31
[in] modenum Open drain mode number, should be one of the following: - PINSEL_PINMODE_NORMAL : Pin is in the normal (not open drain) mode
- PINSEL_PINMODE_OPENDRAIN : Pin is in the open drain mode
- Returns:
- None
Definition at line 243 of file lpc17xx_pinsel.c.
void PINSEL_SetPinFunc | ( | uint8_t | portnum, | |
uint8_t | pinnum, | |||
uint8_t | funcnum | |||
) |
Setup the pin selection function.
- Parameters:
-
[in] portnum PORT number, should be one of the following: - PINSEL_PORT_0 : Port 0
- PINSEL_PORT_1 : Port 1
- PINSEL_PORT_2 : Port 2
- PINSEL_PORT_3 : Port 3
[in] pinnum Pin number, should be one of the following: - PINSEL_PIN_0 : Pin 0
- PINSEL_PIN_1 : Pin 1
- PINSEL_PIN_2 : Pin 2
- PINSEL_PIN_3 : Pin 3
- PINSEL_PIN_4 : Pin 4
- PINSEL_PIN_5 : Pin 5
- PINSEL_PIN_6 : Pin 6
- PINSEL_PIN_7 : Pin 7
- PINSEL_PIN_8 : Pin 8
- PINSEL_PIN_9 : Pin 9
- PINSEL_PIN_10 : Pin 10
- PINSEL_PIN_11 : Pin 11
- PINSEL_PIN_12 : Pin 12
- PINSEL_PIN_13 : Pin 13
- PINSEL_PIN_14 : Pin 14
- PINSEL_PIN_15 : Pin 15
- PINSEL_PIN_16 : Pin 16
- PINSEL_PIN_17 : Pin 17
- PINSEL_PIN_18 : Pin 18
- PINSEL_PIN_19 : Pin 19
- PINSEL_PIN_20 : Pin 20
- PINSEL_PIN_21 : Pin 21
- PINSEL_PIN_22 : Pin 22
- PINSEL_PIN_23 : Pin 23
- PINSEL_PIN_24 : Pin 24
- PINSEL_PIN_25 : Pin 25
- PINSEL_PIN_26 : Pin 26
- PINSEL_PIN_27 : Pin 27
- PINSEL_PIN_28 : Pin 28
- PINSEL_PIN_29 : Pin 29
- PINSEL_PIN_30 : Pin 30
- PINSEL_PIN_31 : Pin 31
[in] funcnum Function number, should be one of the following: - PINSEL_FUNC_0 : default function
- PINSEL_FUNC_1 : first alternate function
- PINSEL_FUNC_2 : second alternate function
- PINSEL_FUNC_3 : third alternate function
- Returns:
- None
Definition at line 88 of file lpc17xx_pinsel.c.
void PINSEL_SetResistorMode | ( | uint8_t | portnum, | |
uint8_t | pinnum, | |||
uint8_t | modenum | |||
) |
Setup resistor mode for each pin.
- Parameters:
-
[in] portnum PORT number, should be one of the following: - PINSEL_PORT_0 : Port 0
- PINSEL_PORT_1 : Port 1
- PINSEL_PORT_2 : Port 2
- PINSEL_PORT_3 : Port 3
[in] pinnum Pin number, should be one of the following: - PINSEL_PIN_0 : Pin 0
- PINSEL_PIN_1 : Pin 1
- PINSEL_PIN_2 : Pin 2
- PINSEL_PIN_3 : Pin 3
- PINSEL_PIN_4 : Pin 4
- PINSEL_PIN_5 : Pin 5
- PINSEL_PIN_6 : Pin 6
- PINSEL_PIN_7 : Pin 7
- PINSEL_PIN_8 : Pin 8
- PINSEL_PIN_9 : Pin 9
- PINSEL_PIN_10 : Pin 10
- PINSEL_PIN_11 : Pin 11
- PINSEL_PIN_12 : Pin 12
- PINSEL_PIN_13 : Pin 13
- PINSEL_PIN_14 : Pin 14
- PINSEL_PIN_15 : Pin 15
- PINSEL_PIN_16 : Pin 16
- PINSEL_PIN_17 : Pin 17
- PINSEL_PIN_18 : Pin 18
- PINSEL_PIN_19 : Pin 19
- PINSEL_PIN_20 : Pin 20
- PINSEL_PIN_21 : Pin 21
- PINSEL_PIN_22 : Pin 22
- PINSEL_PIN_23 : Pin 23
- PINSEL_PIN_24 : Pin 24
- PINSEL_PIN_25 : Pin 25
- PINSEL_PIN_26 : Pin 26
- PINSEL_PIN_27 : Pin 27
- PINSEL_PIN_28 : Pin 28
- PINSEL_PIN_29 : Pin 29
- PINSEL_PIN_30 : Pin 30
- PINSEL_PIN_31 : Pin 31
[in] modenum,: Mode number, should be one of the following: - PINSEL_PINMODE_PULLUP : Internal pull-up resistor
- PINSEL_PINMODE_TRISTATE : Tri-state
- PINSEL_PINMODE_PULLDOWN : Internal pull-down resistor
- Returns:
- None
Definition at line 175 of file lpc17xx_pinsel.c.
Generated on Mon Feb 8 10:01:45 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by 1.5.9