28 lines
453 B
C
28 lines
453 B
C
![]() |
#include <ByteSet.h>
|
||
|
|
||
|
|
||
|
void ByteSet(int ConfigAddr, int InputValue, int OutAddr, int Bytelen)
|
||
|
{
|
||
|
unsigned int *Para = (unsigned int *)ConfigAddr;
|
||
|
|
||
|
|
||
|
// for(int i=0;i<64;i++){Para[i]=0;}
|
||
|
|
||
|
Para[0] = (Bytelen+63)>>6;
|
||
|
|
||
|
Para[1*16] = InputValue;
|
||
|
|
||
|
Para[2*16] = OutAddr;
|
||
|
Para[2*16+12] = Bytelen;
|
||
|
|
||
|
// Para[2*16+4] = 64;
|
||
|
// Para[2*16+8] = 0xffffffff;
|
||
|
// Para[2*16+9] = 0xffffffff;
|
||
|
// Para[2*16+12] = 0x00ffffff;
|
||
|
// Para[2*16+13] = 0x00400006;
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|