ACC-72EX User Manual
Software setup
91
void
Acc72EX_SetIdata32(
unsigned
int
CardIndex,
unsigned
int
ArrayIndex,
int
Input)
{
unsigned
int
*myptr = (
unsigned
int
*)piom + (DPR CardIndex *
0x100000
) /
4
;
myptr[ArrayIndex] = ((Input <<
16
) >>
8
);
myptr[Arra
1
] = ((Input >>
16
) <<
8
);
}
void
Acc72EX_SetUdata32(
unsigned
int
CardIndex,
unsigned
int
ArrayIndex,
unsigned
int
Input){
unsigned
int
*myptr = (
unsigned
int
*)piom + (DPR CardIndex *
0x100000
) /
4
;
myptr[ArrayIndex] = (Input <<
16
) >>
8
;
myptr[Arra
1
] = ((Input >>
16
) <<
8
);
}
void
Acc72EX_SetData8(
unsigned
int
CardIndex,
unsigned
int
ArrayIndex,
char
Input){
unsigned
int
*myptr = (
unsigned
int
*)piom + (DPR CardIndex *
0x100000
) /
4
;
unsigned
int
shift = (
8
* (
1
+ ArrayIndex %
2
));
unsigned
int
ind = ArrayIndex /
2
;
myptr[ind] &= ~(
0x000000FF
<< shift);
myptr[ind] |= (Input << shift);
}