Jean Mercier / Mbed 2 deprecated jmGPIO

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

jmLPC17xx_gpio.h File Reference

jmLPC17xx_gpio.h File Reference

LPC17xx GPIO Command Line Interface. More...

Go to the source code of this file.

Functions

void cli_GPPG0 (void)
 Read GPIO Registers.
void cli_gpioBit (void)
 Command line to Reset/Set/Toggle an output pin Also sets pin as outputs.
void gpio (unsigned int pin, unsigned int action)
 Reset/Set/Toggle an output pin Also sets pin as outputs.

Detailed Description

LPC17xx GPIO Command Line Interface.

Version:
1.0
Date:
Feb 2, 2011

Definition in file jmLPC17xx_gpio.h.


Function Documentation

void cli_gpioBit ( void   )

Command line to Reset/Set/Toggle an output pin Also sets pin as outputs.

Not all pins are available Use with care. Designed to be used with gui which locks non MBED DIP pins Command Line Format: gpioBit (Pin id)0..432 (action clear/set/toggle)0..2

Parameters:
[in]Fromcommand line: (Pin id)0..432 (action clear/set/toggle)0..2
Returns:
Return Message: GPPB0 pin state

Definition at line 266 of file jmLPC17xx_gpio.c.

void cli_GPPG0 ( void   )

Read GPIO Registers.

Command Line Interface to Read and Send GPIO register value

Parameters:
[in]Extractedfrom command line GPPG0 (Port)0..4 (Register DIR/PIN/MASK)0..2
Returns:
Message: GPPG0 (Port)0..4 (Register DIR/PIN/MASK)0..2 (value)0..0xFFFFFFFF

Definition at line 107 of file jmLPC17xx_gpio.c.

void gpio ( unsigned int  pin,
unsigned int  action 
)

Reset/Set/Toggle an output pin Also sets pin as outputs.

Parameters:
[in]pinpin id (value)0..432
[in]action0..2 Clear/Set/Toggle
Returns:
Return Message: GPPB0 pin state

Definition at line 229 of file jmLPC17xx_gpio.c.