TOOTHPIC RF Solutions, TOOTHPIC Datasheet - Page 96

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)
To retrieve an input or output value, use the value getting variable as appropriate, for example:
To set an output value, use the value getting function as appropriate, for example:
FlexiPanel Server
Overview
The FlexiPanel server allows remote devices such as Windows PCs, handhelds and cell phones to display
user interfaces (UIs) on its behalf. It uses the FlexiPanel Bluetooth Protocol to transmit the required UI to the
remote device. The remote device needs to run the FlexiPanel Client software which is freely available from
FlexiPanel Ltd. The Client software does not require customization, since the UI specifications are stored on
the server, and transmitted to the client when it connects. The server is not concerned about the type of client
which connects – it treats them equally.
The UI specification is compiled using FlexiPanel Designer software which is freely available from FlexiPanel
Ltd. It is stored from memory location 0x010000 onwards. (The linker will fit the developer’s code around it.)
To set and retrieve control values, macros are defined in the header file generated by FlexiPanel Designer.
FxPCommand
The service FxPCommand sends a command to the FlexiPanel server:
FxPCommand will return immediately the command has been processed. Asynchronous responses from the
FlexiPanel user interface server will be in the form of FxPEvent callbacks. The commands are:
CommandID (hex value)
FxPC_Start (01)
FxPC_Finish (02)
FxPC_SetDialog (03)
FxPC_Disco (04)
FxPC_CtlUpdate (05)
FxPC_PartUpdate (06)
FxPC_SetProps (07)
FxPC_InitData (09)
FxPC_MultiUpdate (0A)
FxPC_MultiPartUpdate
(0B)
Page 96
DirPC4( DirParOutput );
if ( GetPB3 == 0x03 )
SetPA4( 0x09 );
void FxPCommand(unsigned char CommandID, unsigned short IDVal, void * iVal)
9-Apr-06
Toothpick 3.0.00007
Command description
Starts FlexiPanel server
Selects a new dialog to display
Disconnects currently
connected remote device
Refreshes the value of a control
on the client
Refreshes the value of a single
matrix row on the client
Sets control properties and
color
(Re-) initializes control data
Prepares to send multiple
FxPC_CtlUpdate updates in a
single message
Prepares to send multiple
FxPC_PartUpdate updates in
DS380-8
// set AN8 to 1, AN9 to 0, AN10 to 0, AN11 to 1
// e.g. binary 1001 = 0x09
© FlexiPanel Ltd
// Set up PC4 digital output
// if AN1 is 0, AN2 is 1, AN3 is 1,
// e.g. binary 011 = 0x03
Patents apply and/or pending
IDVal
ignored
ignored
Dialog index number
(high byte ignored)
ignored
ID of updated control
ID of updated control
ID of updated control
ignored
Number of
FxPC_CtlUpdate
commands to follow
Number of
FxPC_PartUpdate
pVal
ignored
ignored
ignored
ignored
ignored
Row number (short
cast to void *)
New properties
(unsigned long *)
ignored
ignored
ignored
www.FlexiPanel.com

Related parts for TOOTHPIC