TOOTHPIC RF Solutions, TOOTHPIC Datasheet - Page 25

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)
The application should now function correctly. Compile it and load it into ToothPIC. By setting breakpoints in
a debugger, you can trap events to see the code being processed. Remember that if you are stopped at a
breakpoint, ToothPIC will no longer process information coming from BlueMatik. With FlexiPanel service in
operation, you may wish to turn off pings if they are enabled on the Client to stop it sending ping messages
while ToothPIC is at a breakpoint.
Page 25
Many macros from HelloWorldRes.h were used in this last piece of code. The macros generated
will depend on the control types and where the data is stored. Inspect the file HelloWorldRes.h to
see the macros available for the controls you have created. In particular, note the following:
9-Apr-06
The FxPE_ClntUpdate event signals that a control has been modified by the user.
The ID_Change_Text_2 ID value, defined in HelloWorldRes.h, is used to identify that the
Change Text button has been modified. The _xxx suffix (_2 in this case) is added to ensure all
control ID definitions are unique even if their title is the same. The ID value definitions such as
ID_Change_Text_2 will not change (so long as you do not change the control title), although
the underlying ID values will as you add and remove controls from the user interface.
The pText1_1 pointer, defined in HelloWorldRes.h, may be used to access the control data.
In this case, because the pointer is a RAM pointer, you can use it for reading or writing the
value. If it was a ROM pointer, you could use it for reading only. If the control was stored in
external memory, no pointer would be defined at all. Set_ and Get_ macros are defined for all
controls and you can always access the control values using those macros.
The SetUp_Text1_1 macro, defined in HelloWorldRes.h, is used to set the value of the
control and then send the updated value to the remote client. It has two arguments - the first is
if the source data is a ROM pointer, the second is if the source data is a RAM pointer. The
unused argument must be set to zero.
}
}
Toothpick 3.0.00007
}
else
{
}
SetUp_Text1_1( szWorld, 0 ) ;
// set the text value to Hello and update the client
SetUp_Text1_1( szHello, 0 ) ;
DS380-8
© FlexiPanel Ltd
Patents apply and/or pending
www.FlexiPanel.com

Related parts for TOOTHPIC