144 info(
"SpecsGlue",
"Specs Glue Element help");
146 info(
"",
"Address # : set slave address at #");
147 info(
"",
"Reset : reset of the slave");
148 info(
"",
"ResetInternal : internal reset of the slave");
149 info(
"",
"RegWrite #0 #1 : write register #0 with value #1");
150 info(
"",
"RegRead #0 #1 : read register #");
159 unsigned char reg = 8 ;
163 val = (val&0xFF00)*100+(val&0xFF);
166 warning(
"" ,
"Compilation in _NoDevice_ mode." );
175 unsigned char reg = 4 ;
180 val = ( val & 0xFFF7 ) ;
182 debug(
"SpecsGlue::led",
"setting Glue LEDs On");
185 val = ( val | 0x0008 ) ;
187 debug(
"SpecsGlue::led",
"setting Glue LEDs OFF");
190 debug(
"" ,
"Compilation in _NoDevice_ mode." );
198 unsigned char reg = 4 ;
202 if ( 0 != ( val & 0x0008 ) ){
203 debug(
"SpecsGlue::led",
"Glue LEDs are OFF");
207 warning(
"" ,
"Compilation in _NoDevice_ mode." );
210 debug(
"SpecsGlue::led",
"Glue LEDs are ON");
218 unsigned char reg = 4 ;
223 val = ( val & 0xFFFB ) ;
225 debug(
"SpecsGlue::led",
"setting Glue I2C Mode Clk idle 1");
228 val = ( val | 0x0004 ) ;
230 debug(
"SpecsGlue::led",
"setting Glue I2C Mode Clk idle 0");
233 warning(
"" ,
"Compilation in _NoDevice_ mode." );
242 unsigned char reg = 4 ;
246 if ( 0 != ( val & 0x0004 ) ){
247 debug(
"SpecsGlue::led",
"Glue I2C Mode Clk idle 0");
251 warning(
"" ,
"Compilation in _NoDevice_ mode." );
254 debug(
"SpecsGlue::led",
"Glue I2C Mode Clk idle 1");
void info(std::string mymsg)
void setName(std::string name)
virtual ~SpecsGlue()
Standard Destructor.
bool specsWriteRegister(unsigned char, unsigned short)
void setType(std::string type)
void debug(std::string mymsg)
void setAddress(unsigned char)
SpecsGlue()
Standard constructor.
void warning(std::string mymsg)
bool specsReadRegister(unsigned char, U16 &)