User Manual
SDK - SCR API
________________________________
____________
Boomer II User Manual & Integrator’s Guide
Wavenet Technology 60 BM210012WT09
/ * The SCR Me s s a ge da t a s t r uc t u r e . * /
t yp e de f s t r u c t SCRMs g {
i nt ms g_ t yp e ;
un i on {
SCRhr r r ; / *ms g_ t yp e : SCR_ HR*/
SCRa r a r ; / *ms g_ t yp e : SCR_ AR*/
SCRl r l r ; / *ms g_ t yp e : SCR_ LR*/
SCRhc h c ; / *ms g_ t yp e : SCR_HC*/
SCRa c a c ; / *ms g_t yp e : SCR_AC* /
SCRl c l c ; / *ms g _t y pe : SCR_LC*/
SCRmi mi ; / *ms g_ t yp e : SCR_MI * /
SCRc i c i ; / *ms g_ t yp e : SCR_ CI * /
SCRdi di ; / *ms g_ t yp e : SCR_ DI * /
SCRr s r s ; / *ms g_t ype : SCR_RS* /
SCRr r r r ; / *ms g_ t yp e : SCR_RR* /
SCRi b i b; / *ms g_ t yp e : SCR_ I B* /
SCRob ob ; / *ms g_ t yp e : SCR_OB* /
SCRa b a b; / *ms g_ t yp e : SCR_ AB*/
SCRr e qs t a t r e q s t a t ; / * ms g_ t yp e :
SCR_REQ_STAT* /
SCRs t a t r s p s t a t r s p; / *ms g_t ype :
SCR_STAT_RSP*/
SCRt one t t one t ; / *ms g_ t yp e :
SCR_TO_NET*/
SCRf r omn e t f r omn e t ; / * ms g_t y pe :
SCR_FROM_ NET*/
SCRa c k a c k; / *ms g_t yp e : SCR_ACK* /
} u;
} SCRMs g;
Definitions for all SCR message structures can be found in the file
scrapi.h. (SCR SDK)
Network Independent Messages
The SCR API provides several network independent message types.
These message types represent basic functions within the SCR protocol
that are applicable to all DataTAC network types. The SCR API
encodes and decodes these message types as the appropriate message
for the correct network type, as given in the call to the scr_Init()
function.
It is recommended that you use these network independent message
types wherever possible, to enhance the portability of the code between
different DataTAC network versions.
The three network independent message types are listed here:
SCR_FROM_NET Generic From Network message. This is used
for receiving data from a wireless device.
Depending on the network setting, this
corresponds to either a Basic Outbound (OB)
message for DataTAC 4000 networks, or a
Message Indication (MI) for DataTAC 5000 or
6000 networks.
SCR_TO_NET Generic To Network message. This is used for
sending data to a wireless device. Depending on
the network setting, this will be encoded as
either a Basic Inbound (IB) message for