config Button_PORT // module-wide |
|
Address of 8-bit output port to use
extern const Ptr Button_PORT;
config Button_PORT_IE // module-wide |
|
Address of Interrupt Enable register
extern const Ptr Button_PORT_IE;
config Button_PORT_IFG // module-wide |
|
Address of Interrupt Flag register
extern const Ptr Button_PORT_IFG;
config Button_PORT_OUT // module-wide |
|
Address of output configuration register
extern const Ptr Button_PORT_OUT;
config Button_PORT_REN // module-wide |
|
Address of pullup/down resister enable configuration register
extern const Ptr Button_PORT_REN;
config Button_SWITCH1 // module-wide |
|
Port mask for switch #1
extern const Bits8 Button_SWITCH1;
config Button_SWITCH2 // module-wide |
|
Port mask for switch #2
extern const Bits8 Button_SWITCH2;
Button_disable() // module-wide |
|
Disable the specified buttons
Void Button_disable(Bits8 mask);
Button_enable() // module-wide |
|
Enable the specified buttons
Void Button_enable(Bits8 mask);
Button_read() // module-wide |
|
Atomically read and clear the specified buttons
Bits8 Button_read(Bits8 mask);
DETAILS
This function returns the state of the buttons and clears
their state. Only the state of the buttons specified by
mask are affected.
Module-Wide Built-Ins |
|
// Get this module's unique id
Bool Button_Module_startupDone();
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool Button_Module_hasMask();
// Test whether this module has a diagnostics mask
Bits16 Button_Module_getMask();
// Returns the diagnostics mask for this module
Void Button_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module
metaonly config Button.PORT0 // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT0 = Ptr 0x11;
metaonly config Button.PORT0_IE // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT0_IE = Ptr 0x15;
metaonly config Button.PORT0_IFG // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT0_IFG = Ptr 0x13;
metaonly config Button.PORT0_OUT // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT0_OUT = Ptr 0x11;
metaonly config Button.PORT0_REN // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT0_REN = Ptr 0x11;
metaonly config Button.PORT1 // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT1 = Ptr 0x21;
metaonly config Button.PORT1_IE // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT1_IE = Ptr 0x25;
metaonly config Button.PORT1_IFG // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT1_IFG = Ptr 0x23;
metaonly config Button.PORT1_OUT // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT1_OUT = Ptr 0x21;
metaonly config Button.PORT1_REN // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT1_REN = Ptr 0x27;
metaonly config Button.PORT2 // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT2 = Ptr 0x29;
metaonly config Button.PORT2_IE // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT2_IE = Ptr 0x2D;
metaonly config Button.PORT2_IFG // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT2_IFG = Ptr 0x2B;
metaonly config Button.PORT2_OUT // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT2_OUT = Ptr 0x29;
metaonly config Button.PORT2_REN // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORT2_REN = Ptr 0x2F;
metaonly config Button.PORTA_IE_H // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORTA_IE_H = Ptr 0x21B;
metaonly config Button.PORTA_IE_L // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORTA_IE_L = Ptr 0x21A;
metaonly config Button.PORTA_IFG_H // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORTA_IFG_H = Ptr 0x21D;
metaonly config Button.PORTA_IFG_L // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORTA_IFG_L = Ptr 0x21C;
metaonly config Button.PORTA_OUT_H // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORTA_OUT_H = Ptr 0x203;
metaonly config Button.PORTA_OUT_L // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORTA_OUT_L = Ptr 0x202;
metaonly config Button.PORTA_REN_H // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORTA_REN_H = Ptr 0x207;
metaonly config Button.PORTA_REN_L // module-wide |
|
XDCscript usage |
meta-domain |
const Button.PORTA_REN_L = Ptr 0x206;
config Button.PORT // module-wide |
|
Address of 8-bit output port to use
XDCscript usage |
meta-domain |
C SYNOPSIS
config Button.PORT_IE // module-wide |
|
Address of Interrupt Enable register
XDCscript usage |
meta-domain |
C SYNOPSIS
config Button.PORT_IFG // module-wide |
|
Address of Interrupt Flag register
XDCscript usage |
meta-domain |
C SYNOPSIS
config Button.PORT_OUT // module-wide |
|
Address of output configuration register
XDCscript usage |
meta-domain |
C SYNOPSIS
config Button.PORT_REN // module-wide |
|
Address of pullup/down resister enable configuration register
XDCscript usage |
meta-domain |
C SYNOPSIS
config Button.SWITCH1 // module-wide |
|
Port mask for switch #1
XDCscript usage |
meta-domain |
Button.SWITCH1 = Bits8 0x1;
C SYNOPSIS
config Button.SWITCH2 // module-wide |
|
Port mask for switch #2
XDCscript usage |
meta-domain |
Button.SWITCH2 = Bits8 0x2;
C SYNOPSIS
metaonly config Button.common$ // module-wide |
|
Common module configuration parameters
XDCscript usage |
meta-domain |
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.