module ti.mcu.msp430.runtime.utils.Led

Simple LED manager

C synopsis target-domain sourced in ti/mcu/msp430/runtime/utils/Led.xdc
#include <ti/mcu/msp430/runtime/utils/Led.h>
Functions
Void 
Void 
Void 
Functions common to all target modules
Defines
#define
Led_PORT0//  (Ptr)0x11
#define
#define
Led_PORT1//  (Ptr)0x21
#define
#define
Led_PORT2//  (Ptr)0x29
#define
#define
Led_PORT3//  (Ptr)0x19
#define
#define
Led_PORT4//  (Ptr)0x1D
#define
#define
Led_PORT5//  (Ptr)0x31
#define
#define
Led_PORT6//  (Ptr)0x35
#define
#define
Led_PORT7//  (Ptr)0x3A
#define
#define
Led_PORT8//  (Ptr)0x3B
#define
#define
#define
#define
Led_PORTA_H//  (Ptr)0x203
#define
Led_PORTA_L//  (Ptr)0x202
#define
#define
#define
Led_PORTB_H//  (Ptr)0x223
#define
Led_PORTB_L//  (Ptr)0x222
#define
#define
#define
Led_PORTC_H//  (Ptr)0x243
#define
Led_PORTC_L//  (Ptr)0x242
#define
#define
#define
Led_PORTD_H//  (Ptr)0x263
#define
Led_PORTD_L//  (Ptr)0x262
#define
#define
#define
Led_PORTE_H//  (Ptr)0x283
#define
Led_PORTE_L//  (Ptr)0x282
#define
#define
Led_PORTF_L//  (Ptr)0x2A2
Constants
extern const Ptr 
extern const Bits8 
extern const Ptr 
extern const Bits8 
 
 
const Led_PORT0
C synopsis target-domain
#define Led_PORT0 (Ptr)0x11
 
 
const Led_PORT0DIR
C synopsis target-domain
#define Led_PORT0DIR (Ptr)0x12
 
 
const Led_PORT1
C synopsis target-domain
#define Led_PORT1 (Ptr)0x21
 
 
const Led_PORT1DIR
C synopsis target-domain
#define Led_PORT1DIR (Ptr)0x22
 
 
const Led_PORT2
C synopsis target-domain
#define Led_PORT2 (Ptr)0x29
 
 
const Led_PORT2DIR
C synopsis target-domain
#define Led_PORT2DIR (Ptr)0x2A
 
 
const Led_PORT3
C synopsis target-domain
#define Led_PORT3 (Ptr)0x19
 
 
const Led_PORT3DIR
C synopsis target-domain
#define Led_PORT3DIR (Ptr)0x1A
 
 
const Led_PORT4
C synopsis target-domain
#define Led_PORT4 (Ptr)0x1D
 
 
const Led_PORT4DIR
C synopsis target-domain
#define Led_PORT4DIR (Ptr)0x1E
 
 
const Led_PORT5
C synopsis target-domain
#define Led_PORT5 (Ptr)0x31
 
 
const Led_PORT5DIR
C synopsis target-domain
#define Led_PORT5DIR (Ptr)0x32
 
 
const Led_PORT6
C synopsis target-domain
#define Led_PORT6 (Ptr)0x35
 
 
const Led_PORT6DIR
C synopsis target-domain
#define Led_PORT6DIR (Ptr)0x36
 
 
const Led_PORT7
C synopsis target-domain
#define Led_PORT7 (Ptr)0x3A
 
 
const Led_PORT7DIR
C synopsis target-domain
#define Led_PORT7DIR (Ptr)0x3C
 
 
const Led_PORT8
C synopsis target-domain
#define Led_PORT8 (Ptr)0x3B
 
 
const Led_PORT8DIR
C synopsis target-domain
#define Led_PORT8DIR (Ptr)0x3D
 
 
const Led_PORTADIR_H
C synopsis target-domain
#define Led_PORTADIR_H (Ptr)0x205
 
 
const Led_PORTADIR_L
C synopsis target-domain
#define Led_PORTADIR_L (Ptr)0x204
 
 
const Led_PORTA_H
C synopsis target-domain
#define Led_PORTA_H (Ptr)0x203
 
 
const Led_PORTA_L
C synopsis target-domain
#define Led_PORTA_L (Ptr)0x202
 
 
const Led_PORTBDIR_H
C synopsis target-domain
#define Led_PORTBDIR_H (Ptr)0x225
 
 
const Led_PORTBDIR_L
C synopsis target-domain
#define Led_PORTBDIR_L (Ptr)0x224
 
 
const Led_PORTB_H
C synopsis target-domain
#define Led_PORTB_H (Ptr)0x223
 
 
const Led_PORTB_L
C synopsis target-domain
#define Led_PORTB_L (Ptr)0x222
 
 
const Led_PORTCDIR_H
C synopsis target-domain
#define Led_PORTCDIR_H (Ptr)0x245
 
 
const Led_PORTCDIR_L
C synopsis target-domain
#define Led_PORTCDIR_L (Ptr)0x244
 
 
const Led_PORTC_H
C synopsis target-domain
#define Led_PORTC_H (Ptr)0x243
 
 
const Led_PORTC_L
C synopsis target-domain
#define Led_PORTC_L (Ptr)0x242
 
 
const Led_PORTDDIR_H
C synopsis target-domain
#define Led_PORTDDIR_H (Ptr)0x265
 
 
const Led_PORTDDIR_L
C synopsis target-domain
#define Led_PORTDDIR_L (Ptr)0x264
 
 
const Led_PORTD_H
C synopsis target-domain
#define Led_PORTD_H (Ptr)0x263
 
 
const Led_PORTD_L
C synopsis target-domain
#define Led_PORTD_L (Ptr)0x262
 
 
const Led_PORTEDIR_H
C synopsis target-domain
#define Led_PORTEDIR_H (Ptr)0x285
 
 
const Led_PORTEDIR_L
C synopsis target-domain
#define Led_PORTEDIR_L (Ptr)0x284
 
 
const Led_PORTE_H
C synopsis target-domain
#define Led_PORTE_H (Ptr)0x283
 
 
const Led_PORTE_L
C synopsis target-domain
#define Led_PORTE_L (Ptr)0x282
 
 
const Led_PORTFDIR_L
C synopsis target-domain
#define Led_PORTFDIR_L (Ptr)0x2A4
 
 
const Led_PORTF_L
C synopsis target-domain
#define Led_PORTF_L (Ptr)0x2A2
 
 
config Led_DIRCFG  // module-wide

Address of GPIO configuration register

C synopsis target-domain
extern const Ptr Led_DIRCFG;
 
 
config Led_GREEN  // module-wide

Port mask for a green LED

C synopsis target-domain
extern const Bits8 Led_GREEN;
 
 
config Led_PORT  // module-wide

Address of 8-bit output port to use

C synopsis target-domain
extern const Ptr Led_PORT;
 
 
config Led_RED  // module-wide

Port mask for a red LED

C synopsis target-domain
extern const Bits8 Led_RED;
 
 
Led_off()  // module-wide

Turn specified LED off

C synopsis target-domain
Void Led_off(Bits8 mask);
 
 
Led_on()  // module-wide

Turn specified LED on

C synopsis target-domain
Void Led_on(Bits8 mask);
 
 
Led_toggle()  // module-wide

Toggle the state of specified LED

C synopsis target-domain
Void Led_toggle(Bits8 mask);
 
Module-Wide Built-Ins

C synopsis target-domain
Types_ModuleId Led_Module_id();
// Get this module's unique id
 
Bool Led_Module_startupDone();
// Test if this module has completed startup
 
IHeap_Handle Led_Module_heap();
// The heap from which this module allocates memory
 
Bool Led_Module_hasMask();
// Test whether this module has a diagnostics mask
 
Bits16 Led_Module_getMask();
// Returns the diagnostics mask for this module
 
Void Led_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module
 
XDCscript usage meta-domain sourced in ti/mcu/msp430/runtime/utils/Led.xdc
var Led = xdc.useModule('ti.mcu.msp430.runtime.utils.Led');
module-wide constants & types
    const Led.PORT0//  = 0x11;
    const Led.PORT0DIR//  = 0x12;
    const Led.PORT1//  = 0x21;
    const Led.PORT1DIR//  = 0x22;
    const Led.PORT2//  = 0x29;
    const Led.PORT2DIR//  = 0x2A;
    const Led.PORT3//  = 0x19;
    const Led.PORT3DIR//  = 0x1A;
    const Led.PORT4//  = 0x1D;
    const Led.PORT4DIR//  = 0x1E;
    const Led.PORT5//  = 0x31;
    const Led.PORT5DIR//  = 0x32;
    const Led.PORT6//  = 0x35;
    const Led.PORT6DIR//  = 0x36;
    const Led.PORT7//  = 0x3A;
    const Led.PORT7DIR//  = 0x3C;
    const Led.PORT8//  = 0x3B;
    const Led.PORT8DIR//  = 0x3D;
    const Led.PORTADIR_H//  = 0x205;
    const Led.PORTADIR_L//  = 0x204;
    const Led.PORTA_H//  = 0x203;
    const Led.PORTA_L//  = 0x202;
    const Led.PORTBDIR_H//  = 0x225;
    const Led.PORTBDIR_L//  = 0x224;
    const Led.PORTB_H//  = 0x223;
    const Led.PORTB_L//  = 0x222;
    const Led.PORTCDIR_H//  = 0x245;
    const Led.PORTCDIR_L//  = 0x244;
    const Led.PORTC_H//  = 0x243;
    const Led.PORTC_L//  = 0x242;
    const Led.PORTDDIR_H//  = 0x265;
    const Led.PORTDDIR_L//  = 0x264;
    const Led.PORTD_H//  = 0x263;
    const Led.PORTD_L//  = 0x262;
    const Led.PORTEDIR_H//  = 0x285;
    const Led.PORTEDIR_L//  = 0x284;
    const Led.PORTE_H//  = 0x283;
    const Led.PORTE_L//  = 0x282;
    const Led.PORTFDIR_L//  = 0x2A4;
    const Led.PORTF_L//  = 0x2A2;
module-wide config parameters
    Led.RED// Port mask for a red LED = Bits8 0x1;
 
 
 
const Led.PORT0
XDCscript usage meta-domain
const Led.PORT0 = 0x11;
 
C SYNOPSIS
 
const Led.PORT0DIR
XDCscript usage meta-domain
const Led.PORT0DIR = 0x12;
 
C SYNOPSIS
 
const Led.PORT1
XDCscript usage meta-domain
const Led.PORT1 = 0x21;
 
C SYNOPSIS
 
const Led.PORT1DIR
XDCscript usage meta-domain
const Led.PORT1DIR = 0x22;
 
C SYNOPSIS
 
const Led.PORT2
XDCscript usage meta-domain
const Led.PORT2 = 0x29;
 
C SYNOPSIS
 
const Led.PORT2DIR
XDCscript usage meta-domain
const Led.PORT2DIR = 0x2A;
 
C SYNOPSIS
 
const Led.PORT3
XDCscript usage meta-domain
const Led.PORT3 = 0x19;
 
C SYNOPSIS
 
const Led.PORT3DIR
XDCscript usage meta-domain
const Led.PORT3DIR = 0x1A;
 
C SYNOPSIS
 
const Led.PORT4
XDCscript usage meta-domain
const Led.PORT4 = 0x1D;
 
C SYNOPSIS
 
const Led.PORT4DIR
XDCscript usage meta-domain
const Led.PORT4DIR = 0x1E;
 
C SYNOPSIS
 
const Led.PORT5
XDCscript usage meta-domain
const Led.PORT5 = 0x31;
 
C SYNOPSIS
 
const Led.PORT5DIR
XDCscript usage meta-domain
const Led.PORT5DIR = 0x32;
 
C SYNOPSIS
 
const Led.PORT6
XDCscript usage meta-domain
const Led.PORT6 = 0x35;
 
C SYNOPSIS
 
const Led.PORT6DIR
XDCscript usage meta-domain
const Led.PORT6DIR = 0x36;
 
C SYNOPSIS
 
const Led.PORT7
XDCscript usage meta-domain
const Led.PORT7 = 0x3A;
 
C SYNOPSIS
 
const Led.PORT7DIR
XDCscript usage meta-domain
const Led.PORT7DIR = 0x3C;
 
C SYNOPSIS
 
const Led.PORT8
XDCscript usage meta-domain
const Led.PORT8 = 0x3B;
 
C SYNOPSIS
 
const Led.PORT8DIR
XDCscript usage meta-domain
const Led.PORT8DIR = 0x3D;
 
C SYNOPSIS
 
const Led.PORTADIR_H
XDCscript usage meta-domain
const Led.PORTADIR_H = 0x205;
 
C SYNOPSIS
 
const Led.PORTADIR_L
XDCscript usage meta-domain
const Led.PORTADIR_L = 0x204;
 
C SYNOPSIS
 
const Led.PORTA_H
XDCscript usage meta-domain
const Led.PORTA_H = 0x203;
 
C SYNOPSIS
 
const Led.PORTA_L
XDCscript usage meta-domain
const Led.PORTA_L = 0x202;
 
C SYNOPSIS
 
const Led.PORTBDIR_H
XDCscript usage meta-domain
const Led.PORTBDIR_H = 0x225;
 
C SYNOPSIS
 
const Led.PORTBDIR_L
XDCscript usage meta-domain
const Led.PORTBDIR_L = 0x224;
 
C SYNOPSIS
 
const Led.PORTB_H
XDCscript usage meta-domain
const Led.PORTB_H = 0x223;
 
C SYNOPSIS
 
const Led.PORTB_L
XDCscript usage meta-domain
const Led.PORTB_L = 0x222;
 
C SYNOPSIS
 
const Led.PORTCDIR_H
XDCscript usage meta-domain
const Led.PORTCDIR_H = 0x245;
 
C SYNOPSIS
 
const Led.PORTCDIR_L
XDCscript usage meta-domain
const Led.PORTCDIR_L = 0x244;
 
C SYNOPSIS
 
const Led.PORTC_H
XDCscript usage meta-domain
const Led.PORTC_H = 0x243;
 
C SYNOPSIS
 
const Led.PORTC_L
XDCscript usage meta-domain
const Led.PORTC_L = 0x242;
 
C SYNOPSIS
 
const Led.PORTDDIR_H
XDCscript usage meta-domain
const Led.PORTDDIR_H = 0x265;
 
C SYNOPSIS
 
const Led.PORTDDIR_L
XDCscript usage meta-domain
const Led.PORTDDIR_L = 0x264;
 
C SYNOPSIS
 
const Led.PORTD_H
XDCscript usage meta-domain
const Led.PORTD_H = 0x263;
 
C SYNOPSIS
 
const Led.PORTD_L
XDCscript usage meta-domain
const Led.PORTD_L = 0x262;
 
C SYNOPSIS
 
const Led.PORTEDIR_H
XDCscript usage meta-domain
const Led.PORTEDIR_H = 0x285;
 
C SYNOPSIS
 
const Led.PORTEDIR_L
XDCscript usage meta-domain
const Led.PORTEDIR_L = 0x284;
 
C SYNOPSIS
 
const Led.PORTE_H
XDCscript usage meta-domain
const Led.PORTE_H = 0x283;
 
C SYNOPSIS
 
const Led.PORTE_L
XDCscript usage meta-domain
const Led.PORTE_L = 0x282;
 
C SYNOPSIS
 
const Led.PORTFDIR_L
XDCscript usage meta-domain
const Led.PORTFDIR_L = 0x2A4;
 
C SYNOPSIS
 
const Led.PORTF_L
XDCscript usage meta-domain
const Led.PORTF_L = 0x2A2;
 
C SYNOPSIS
 
config Led.DIRCFG  // module-wide

Address of GPIO configuration register

XDCscript usage meta-domain
Led.DIRCFG = Ptr Led.PORT1DIR;
 
C SYNOPSIS
 
config Led.GREEN  // module-wide

Port mask for a green LED

XDCscript usage meta-domain
Led.GREEN = Bits8 0x2;
 
C SYNOPSIS
 
config Led.PORT  // module-wide

Address of 8-bit output port to use

XDCscript usage meta-domain
Led.PORT = Ptr Led.PORT1;
 
C SYNOPSIS
 
config Led.RED  // module-wide

Port mask for a red LED

XDCscript usage meta-domain
Led.RED = Bits8 0x1;
 
C SYNOPSIS
 
metaonly config Led.common$  // module-wide

Common module configuration parameters

XDCscript usage meta-domain
Led.common$ = Types.Common$ undefined;
 
DETAILS
All modules have this configuration parameter. Its name contains the '$' character to ensure it does not conflict with configuration parameters declared by the module. This allows new configuration parameters to be added in the future without any chance of breaking existing modules.
generated on Tue, 10 Jul 2012 02:24:10 GMT