summaryrefslogtreecommitdiffstats
path: root/data/mnet/GP10/Host/rm/Src/intg_SendPhRaIndToLapdm.cpp
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-07-09 16:09:18 +0200
committerHarald Welte <laforge@gnumonks.org>2010-07-09 16:09:18 +0200
commit903a15fc26e225c2559c98eba362e29f09de3d2c (patch)
tree5680b3c68a728df86092a5b8a4756625724025c3 /data/mnet/GP10/Host/rm/Src/intg_SendPhRaIndToLapdm.cpp
import source code of Vovida GSML project (from www.vovida.org)HEADgsml-1_0master
This is the source code as it was published on vovida.org a couple of years ago. The filename was gsml-1_0.tar.bz2
Diffstat (limited to 'data/mnet/GP10/Host/rm/Src/intg_SendPhRaIndToLapdm.cpp')
-rw-r--r--data/mnet/GP10/Host/rm/Src/intg_SendPhRaIndToLapdm.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/data/mnet/GP10/Host/rm/Src/intg_SendPhRaIndToLapdm.cpp b/data/mnet/GP10/Host/rm/Src/intg_SendPhRaIndToLapdm.cpp
new file mode 100644
index 0000000..9c83eca
--- /dev/null
+++ b/data/mnet/GP10/Host/rm/Src/intg_SendPhRaIndToLapdm.cpp
@@ -0,0 +1,48 @@
+/*
+********************************************************************
+**
+** (c) Copyright Cisco 2000
+** All Rights Reserved
+**
+*********************************************************************
+*/
+#ifndef __INTG_SENDPHRAINDTOLAPDM_CPP__
+#define __INTG_SENDPHRAINDTOLAPDM_CPP__
+
+#include "lapdm\lapdm_l1intf.h"
+void intg_SendPhRaIndToLapdm(void);
+
+void intg_SendPhRaIndToLapdm(void)
+{
+ int intg_PhRaIndLen = 19;
+ unsigned char intg_PhRaIndData[19] =
+ {
+ 0x10,
+ 0x00,
+ 0x00,
+ 0x00,
+ 0x02, //1. Protocol Descriminator
+ 0x02, //2. Message Type MSB byte
+ 0x00, //3. Message Type LSB byte
+ 0x00, //4. Trx
+ 0x88, //5. Channel Number MSB byte
+ 0x00, //6. Channel Number LSB byte
+ 0x20, //7. Link Identifier: N.A case
+ //0x04, //8. CCCH block on which RA received
+ 0x0D, //9 Ref #: estCause=LUP, random no=13. NECI=0
+ 0x0B, //10. T1 and T3 hi part
+ 0x14, //11. T3 low par and T2
+ 0x00, //12. Access delay
+ 0x00, //13. SNIR byte 1 (MSB)
+ 0x00, //14. SNIR byte 2
+ 0x00, //15. SNIR byte 3
+ 0x00 //16. SNIR byte 4 (LSB)
+ };
+
+ CNI_LAPDM_Ph_Callback(
+ intg_PhRaIndLen,
+ intg_PhRaIndData
+ );
+}
+
+#endif /* __INTG_SENDPHRAINDTOLAPDM_CPP__ */