//90 50 02 00 0C 0F FF
unsigned char arr[]={90,50, 02,00,0C,0F,FF};
unsigned int char_change(unsigned char * arr)
{
unsigned char al ;
unsigned char bl ;
sl = (* arr(arr+2) &0x0f)<<4 ;
sl+= * (arr+3) &0x0f;
bl = (* arr(arr+4) &0x0f)<<4 ;
bl+= * (arr+5) &0x0f;
sl+=bl;
return al<<8+bl ;
} |