Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 10.1
#3
Hello,
Sorry for the delay of my answer.

See attached the code:
Code:
typedef unsigned char           FCMN_UINT8_T;

#define FUTILS_CST_LENGTH_ID 2U

FCMN_UINT8_T MyTable[FUTILS_CST_LENGTH_ID] =
  {
                        0x8E,  0xAD
  };

Then, the table is composed of 2 bytes e.g. 0x8E and 0xAD. So as the value is expressed in hexadecimal. Why do we need to cast the 0x8E to (unsigned char).

Thanks for your help.
B/R Philippe
<t></t>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)