Interface: tos.chips.msp430.pins.HplMsp430GeneralIO
interface HplMsp430GeneralIO
HPL for the TI MSP430 family of microprocessors. This provides an
abstraction for general-purpose I/O.
- Author:
-
Cory Sharp <cssharp@eecs.berkeley.edu>
Commands
command void clr()
command bool get()
command uint8_t getRaw()
command void makeInput()
command void makeOutput()
command void set()
command void toggle()
Commands - Details
clr
command void clr()
get
command bool get()
- Returns:
-
TRUE if pin is high, FALSE otherwise.
getRaw
command uint8_t getRaw()
- Returns:
-
Status of the port that contains the given pin. The x'th
pin on the port will be represented in the x'th bit.
isInput
command bool isInput()
isIOFunc
command bool isIOFunc()
isModuleFunc
command bool isModuleFunc()
isOutput
command bool isOutput()
makeInput
command void makeInput()
makeOutput
command void makeOutput()
selectIOFunc
command void selectIOFunc()
selectModuleFunc
command void selectModuleFunc()
set
command void set()
toggle
command void toggle()