Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual
Page 837

C H A P T E R 2 3
Endpoint Interface
Using the Endpoint Interface
23-9
All option data you set gets packed together into one block of data. Each option
within this block must be long-word aligned for the communication tools. So,
when using the
'template
data form, you need to use the
'struct
type (at the
beginning of the
typelist
array) to guarantee that the option is long-word
aligned and padded. To set the serial input/output parameters, for instance, the
option frame might look like this:
serialIOParms := {
type: 'option,
label: kCMOSerialIOParms,
opCode: opSetNegotiate,
data: {
arglist: [
kNoParity, //
parity
k1StopBits, // stopBits
k8DataBits, // dataBits
k9600bps, //
bps
],
typelist: [
'struct,
'uLong,
'long,
'long,
'long
]
}
};
To get the connection information, the option frame you construct might look like this:
connectInfoParms := {
type: 'option,
label: kCMOSerialIOParms,
opCode: opGetCurrent,
data: {
arglist: [
0, // parity placeholder
0, // stopBits placeholder
0, // dataBits placeholder
0, // bps placeholder
],
typelist: [
'struct,
'ulong,
'long,
- Câble composite AV (16 pages)
- Adaptateur secteur USB (16 pages)
- Battery Charger (52 pages)
- iSight (32 pages)
- StyleWriter EtherTalk Adapter (19 pages)
- StyleWriter - Adaptateur EtherTalk (19 pages)
- Câble AV composante YUV (16 pages)
- Adaptateur EtherTalk pour StyleWriter (19 pages)
- VESA Mount Adapter (20 pages)
- Mac Performa 5300CD (141 pages)
- Video System (95 pages)
- Final Cut Pro 7 (178 pages)
- Final Cut Pro 7 (1990 pages)
- Component AV Cable (12 pages)
- Component AV Cable (16 pages)
- Composite AV Cable (14 pages)
- Composite AV Cable (16 pages)
- IEEE1394 (24 pages)
- Universal Dock (88 pages)
- USB PowerAdapter (16 pages)
- USB Power Adapter (8 pages)
- World Travel Adapter (20 pages)
- TV (48 pages)
- AirPort Time Capsule 802.11ac (32 pages)
- Color StyleWriter 2200 (146 pages)
- AirPort Extreme 802.11n (5th Generation) (44 pages)
- AirPort Express 802.11n (1st Generation) (48 pages)
- AirPort Extreme 802.11n (3rd Generation) (44 pages)
- AirPort Express 802.11n (2nd Generation) (32 pages)
- AirPort Express v4.2 (48 pages)
- AirPort Time Capsule 802.11n (3rd Generation) (40 pages)
- Newton Connection Utilities (for Macintosh) (117 pages)
- Newton Backup Utility (for Macintosh) (39 pages)
- Wireless Keyboard and Mouse (20 pages)
- Newton Internet Enabler (29 pages)
- (22-inch) Cinema Display (21 pages)
- Color StyleWriter 1500 (144 pages)
- Bluetooth (4 pages)
- Color StyleWriter Pro (73 pages)
- Newton Connection Utilities (for Windows) (108 pages)
- AirPort Extreme Base Station v4.2 (36 pages)
- AirPort Extreme Card (12 pages)
- AirPort Time Capsule 802.11n (2nd Generation) (40 pages)
- ImageWriter LQ (2 pages)
- TV/FM Radio System (151 pages)