Appendix B – SDK NCL-API and Port Server_____________________ Boomer-III User Manual & Integrator’s Guide
Copyright Wavenet Technology © October 2003
104
BM310012WT04
typedef struct NCLWaveRadio {
BYTE
rssi[2];
BYTE
reserved1;
BYTE
reserved2;
BYTE
reserved3;
BYTE
reserved4;
BYTE
reserved5;
BYTE
reserved6;
BYTE
reserved7;
BYTE
reserved8;
BYTE
frequency[4];
BYTE
channel[2];
BYTE
base_id;
} NCLWaveRadio;
/* Vendor Spesific: Wavenet Generic*/
typedef struct NCLWaveGen {
BYTE
byte[100];
} NCLWaveGen;
/* NCL status information structure */
typedef union NCLStatus
{
NCLProdId
prod_id;
BYTE
vendor_id;
NCLVersion
sw_version;
NCLRpmId
rpm_id;
BYTE
rpm_vid[2];
NCLGroupLlis
rpm_gid;
WORD
max_data_size;
BYTE
rx_status;
BYTE
tx_status;
BYTE
antenna;
BYTE
radio_in_range;
WORD
ob_msg_count;
WORD
ib_msg_count;
BYTE
flow_control;
BYTE
rcv_mode;
BYTE
event_states;
WORD
radio_channel;
NCLChannelTable
chan_table;
NCLChannelTable dchan_table;
NCLConfigBlock
config_block;
NCLStatusBlock
status_block;
NCLChanBlock
chan_block;
BYTE
bat_level;
NCLWaveSettings wave_set;
NCLWaveRadio
wave_radio;
NCLWaveGen
wave_generic;
}NCLStatus;
/* Event Type */
typedef struct NCLEventType
{
BYTE etype;
/* NCL_RCV_MSG_DATA
'A'
Received message data */
/* NCL_MSG_NOTIFICATION ‘B’
Received Message notification */
/* NCL_TX_EVENT
'C'
Transmitter event */
/* NCL_RX_EVENT
'D'
Receiver event */
/* NCL_HW_EVENT
'E'
Hardware event */