47 EEdsm2::setWord(
int ch,
unsigned short val){
48 assert(ch>=0 && ch<nc);
55 EEdsm2::getJPthr(
int jp)
const {
56 assert(jp>=0 && jp<6);
60 assert(ch>=0 && ch<nc);
61 unsigned short val=
data[ch]>>8;
70 EEdsm2::get3JPHTthr(
int i3p)
const {
72 assert(ch>=0 && ch<nc);
73 unsigned short val=
data[ch]>>14;
81 EEdsm2::getHTTPthr(
int i3p)
const {
83 assert(ch>=0 && ch<nc);
85 unsigned short val=
data[ch] >>7;
92 EEdsm2::getTPthr(
int i3p)
const {
94 assert(ch>=0 && ch<nc);
96 unsigned short val=
data[ch] >>9;
103 EEdsm2::get3JPsum(
int i3p)
const {
106 assert(ch>=0 && ch<nc);
107 unsigned short val=
data[ch]&0xff;
108 if(mYear>=2006) val=val &0x1f;
116 EEdsm2::print(
int k)
const {
117 printf(
"EEdsm2:: INPUTS, year=%d \n",mYear);
121 for(i=nc-1;i>=0;i--) printf(
" %4d ",i);
123 for(i=nc-1;i>=0;i--) printf(
" x%4.4x ",
data[i] );
125 printf(
"\nTPthr = ");
126 for(i=nc-1;i>=0;i--) printf(
" %4d ", getTPthr(i) );
127 printf(
"\nHTTPthr = ");
128 for(i=nc-1;i>=0;i--) printf(
" %4d ", getHTTPthr(i) );
130 printf(
"\nJP_Falk =");
131 for(i=njp-1;i>=0;i--) printf(
" %4d ",i);
132 printf(
"\nJP_Steve=");
133 for(i=njp-1;i>=0; i--) printf(
" %4d ",(i+2)%6+1);
137 for(i=njp-1;i>=0;i--) printf(
" %4d ", getJPthr(i));
141 const char *txt=
"5bit";
142 if(mYear<2006)txt=
"8bit";
145 printf(
"3x.9 JP_Falk(%d+%d+%d) energy/dec: %s=%d HTthr=%d\n",3*i,3*i+1,3*i+2,txt,get3JPsum(i), get3JPHTthr(i));