##// END OF EJS Templates
Bug 408, service_subtype changed to 6 instead of 3 in...
Bug 408, service_subtype changed to 6 instead of 3 in TM_LFR_SCIENCE_NORMAL_SWF_Fx packets Bugs 409, 410 and 406 corrected with bug 411

File last commit:

r197:d5570d7e57e2 R3
r201:35056c087191 R3
Show More
grspw.c
70 lines | 1.0 KiB | text/x-c | CLexer
paul
fifo occupation reported in the HK packet
r197 #include "grspw.h"
int grspw_set_ie( unsigned char value, unsigned int *ctrlReg )
{
// IE = bit 3
// Interrupt Enable
int ret = 0;
if (value == 0)
{
*ctrlReg = *ctrlReg & 0xfffffff7;
}
else if (value == 1)
{
*ctrlReg = *ctrlReg | 0x00000008;
}
else
{
ret = -1;
}
return ret;
}
int grspw_set_tq( unsigned char value, unsigned int *ctrlReg )
{
// TQ = bit 8
// Tick-out IRQ
int ret = 0;
if (value == 0)
{
*ctrlReg = *ctrlReg & 0xfffffeff;
}
else if (value == 1)
{
*ctrlReg = *ctrlReg | 0x00000100;
}
else
{
ret = -1;
}
return ret;
}
int grspw_set_tr( unsigned char value, unsigned int *ctrlReg )
{
// TR = bit 11
// Enable timecode reception
int ret = 0;
if (value == 0)
{
*ctrlReg = *ctrlReg & 0xfffff7ff;
}
else if (value == 1)
{
*ctrlReg = *ctrlReg | 0x00000800;
}
else
{
ret = -1;
}
return ret;
}