How to compare bytes received in a uint8_t?
I have a STM32F103C8T card, I am developing an application that receives a byte array by usb / serial.
I have a variable "uint8_t USBBuffer;" in "usbd_cdc_if.c" which stores the bytes.
My question is: how can a non-vector variable receive an external multi-byte vector?
One of the vectors I get is this: {0x16, 0x16, 0x02, 0x00, 0x10, 0x03, 0x00, 0x00, 0x03}
I realized that I can store these bytes in a single index of a vector, eg: USBBuffer2 [0] = USBBuffer;
With this I can easily transmit USBBuffer2 with the CDC_Transmit function.
My question is, how is this vector stored in a uint8_t that is not a vector? how can i compare with another uint8_t variable?
Thanks in advance.
And I'm sorry if noob's question is that I'm just starting out in this universe.
