Commit e3fdde2d authored by jcaceres's avatar jcaceres
Browse files

more

parent ffca2b4b
......@@ -21,7 +21,7 @@ const unsigned short ETX_XTND = (1<<14);
const unsigned short ETX_STEREO = (1<<13);
const unsigned short ETX_MONO = (0<<13);
const unsigned short ETX_16BIT = (0<<12);
inline void ETX_RATE_MASK(const unsigned short a) { a&(0x7<<9); }
inline unsigned short ETX_RATE_MASK(const unsigned short a) { a&(0x7<<9); }
const unsigned short ETX_48KHZ = (0<<9);
const unsigned short ETX_44KHZ = (1<<9);
const unsigned short ETX_32KHZ = (2<<9);
......@@ -30,7 +30,7 @@ const unsigned short ETX_22KHZ = (4<<9);
const unsigned short ETX_16KHZ = (5<<9);
const unsigned short ETX_11KHZ = (6<<9);
const unsigned short ETX_8KHZ = (7<<9);
inline void ETX_SPP(const unsigned short a) { (a&0x01FF); } //able to express up to 512 SPP
inline unsigned short ETX_SPP(const unsigned short a) { (a&0x01FF); } //able to express up to 512 SPP
/*
#define ETX_RSVD (0<<15)
......
......@@ -94,11 +94,14 @@ UDPInput::rcv (char *buf)
//###############JPC JLink#######################
// Binary print function
//unsigned short caca = 0xFFFF;
//PR("header in binary: ", ETX_STEREO);
//PR("header in binary INPUT:", packetHeader);
PR("header in binary 24 ==============: ", ETX_RATE_MASK(ETX_24KHZ | ETX_XTND));
PR("header in binary 22 ==============: ", ETX_RATE_MASK( ETX_22KHZ | ETX_XTND));
PR("header in binary 8 ==============: ", ETX_RATE_MASK(ETX_8KHZ | ETX_XTND));
PR("tess 1 ======", 2 );
PR("header in binary INPUT:", packetHeader);
// PRC("header in binary packetData INPUT:", &packetData[1]);
//PRC("header in binary packetData INPUT:", &packetData[1]);
//PR("Binary Tests: ", ETX_XTND | ETX_STEREO | ETX_44KHZ);
//PR("ETX_8KHZ: ", ETX_XTND | ETX_STEREO | ETX_8KHZ)
......
......@@ -100,7 +100,7 @@ UDPOutput::send (char *buf)
//Add here the header info
//###################################
//((nsHeader *) packetData)->i_head = packetIndex;//JPC JLink***********************************
((nsHeader *) packetData)->i_head = ETX_XTND | ETX_8KHZ;//JPC JLink***********************************
((nsHeader *) packetData)->i_head = ETX_XTND | ETX_24KHZ;//JPC JLink***********************************
//((nsHeader *) packetData)->i_cksum = 4;//JPC JLink***********************************
//((nsHeader *) packetData)->i_seq = packetIndex;//JPC JLink***********************************
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment