Hi,
What does thin line of code mean?
uint8_t buffer[] = {0x54,0x55,0x56,0x57};
Thanks
Hi,
What does thin line of code mean?
uint8_t buffer[] = {0x54,0x55,0x56,0x57};
Thanks
Make a four element byte array and populate the array with the given values.
uint8_t is a predefined data type - 8 bit unsigned integer.
There are others (uint16_t - 16 bit unsigned integer, uint32_t - unsigned 32 bit integer, etc).
These data types are defined for many different microprocessors and compilers. The advantage of using them instead of the more common unsigned int etc is that unsigned int may be a 16 bit value for one microprocessor/compiler but 32 or even 64 bit for another. Using uint8_t or uint16_t forces 8 or 16 bit variables no matter what the processor or compiler.