const byte cfg_cupgain = 0 ; // the usage definition of the pins D7..D12
// 0: input 1:input(pulled-up) 2:output
word oscversion = 0x0001 ;
word oscvbg ; // band gap voltage in 10bits 0 means a failure.
word oscconfig ; // bit0 -> if trigger voltage is 0:uncontrollable
// 1:controllable
// bit1 -> optional-fgen is 0:not attached
// 1:attached
// bit2 -> cupgain is 0:input
// 1:output
byte oscspeed = 0 ; // 0..3:real 4..7:equiv 8:roll
byte oscinput = 0 ; // input signal selection 0:CH1 1:CH2 2:DUAL
byte osctrig = 0 ; // trigger bit012-> 000:CH1 001:CH2 010:EXT
// 011:built-in-pulse
// 100:optional-fgen
// bit4 -> 0:rising 1:falling
// bit5 -> 0:auto 1:normal
word osctdly = 100 ; // time of delayed trigger 100..30000 usec
byte osctvolt ; // trigger level voltage (measured by adc) 0..255
byte osctduty ; // trigger level duty 0..255
byte osccupgain = 0 ; // bit0 -> CH1 coupling 0:dc 1:ac
// bit1 -> CH2 coupling 0:dc 1:ac
// bit23 -> CH1 gain-selection 0,1,2,3
// bit45 -> CH2 gain-selection 0,1,2,3
long oscofreq = 1000 ; // 31 .. 2000000Hz
byte oscoduty = 50 ; // 0..100%
byte fgen ; // 0..3: fgen-dipsw 255:no-fgen
#define TXBSZ 1100
#define RXBSZ 256 // this must be 256.
#define RMBSZ 256 // this must be 256. for rollmode
int txn , txr ;
byte txcrc , rxn ;
byte rmw , rmr , rmon ;
byte txbuf [ TXBSZ ] ;
byte rxbuf [ RXBSZ ] ;
【このカテゴリーの最新記事】
- no image
- no image
- no image
- no image
- no image