TOOTHPIC RF Solutions, TOOTHPIC Datasheet - Page 41

MODULE, BLUETOOTH, DATA ACQUISITION

TOOTHPIC

Manufacturer Part Number
TOOTHPIC
Description
MODULE, BLUETOOTH, DATA ACQUISITION
Manufacturer
RF Solutions
Datasheet

Specifications of TOOTHPIC

Svhc
No SVHC (15-Dec-2010)
Finally, the SWI_Tick software interrupt is cleared.
ErrorStatus
If the client disconnects ungracefully, for example by going out of range, a general error (code 0x0F) may be
generated because BlueMatik will not know what to do with the data DARC-II is giving it. During development,
it is best to set a breakpoint so we can confirm what caused the error. For product release, it is obviously
better to reset immediately.
BMTEvent
Errors are handled in the same way as for ErrorStatus, although no errors are expected.
FlexiPanel Server Events
If a FlexiPanel Client connects, a FxPE_Connected event is generated and DARC-II lights the red LED.
If a FlexiPanel Client disconnects, a FxPE_Disco event is generated and DARC-II turns off the red LED.
If a FlexiPanel Client modifies a control, a FxPE_ClntUpdate event is generated and DARC-II calls the
function ControlChanged().
ControlChanged()
The ControlChanged() function identifies which control has changed and decides whether an output needs
to be changed. Since DARC-II Evaluation Version will not know in advance what I/O setup exists, it must
derive the information from the DARCcfg data structure. Equally, since it will not know in advance what
controls exist, it cannot use any macros generated by the FlexiPanel Designer header file. It needs to use the
pDevD, pDlgD and pCtlD data structures defined in ToothPIC.h to discover what controls exist.
RefreshInputs()
The RefreshInputs() function polls the state of the inputs and decides whether any control values need to
be changed. As with ControlChanged(), the DARC-II Evaluation Version will not know in advance what
I/O setup or user interface controls exist, so it must derive the information from the DARCcfg, pDevD, pDlgD
and pCtlD data structures.
The RefreshInputs() function uses the FxPC_MultiUpdate message to send the updated controls to the
FlexiPanel client to reduce communication time.
Auxiliary Functions
Auxiliary functions are provided for:
Page 41
• Setting output pins according to the state of controls.
• Retrieving the state of input pins.
9-Apr-06
Toothpick 3.0.00007
DS380-8
© FlexiPanel Ltd
Patents apply and/or pending
www.FlexiPanel.com

Related parts for TOOTHPIC