Home > Back-end >  A great god, please help change the following method to the Java language
A great god, please help change the following method to the Java language

Time:09-24

Ask god to help change the following method to the Java language, thank you

Void calc_crc (unsigned int * pCrc, unsigned char uData)
{
Int iBit;
For (iBit=0; IBit<8; IBit++ uData>
=1){
If ((uData ^ * pCrc) & amp; 0 x01)
{
* pCrc>=1;
* pCrc ^=0 xa001;
} the else
* pCrc>=1;
}
}
  • Related