Parsing Hex Responses
screenscribe
Posts: 33
I'm working through my first module for a TOA 9000 series Mixer/Amp. I've setup a buffer in DEFINE_START to catch responses from the device.
Will each individual element in my CHAR array buffer be able to carry any HEX value from 00 to FF?
To illustrate this...let's say the device were to return 91H, 03H, 00H, FFH, 00H. Let's just say nothing else is in the buffer. Would it look like this?
MyBuffer[1] = $91
MyBuffer[2] = $03
MyBuffer[3] = $00
MyBuffer[4] = $FF
MyBuffer[5] = $00
Cheers,
Matthew
Will each individual element in my CHAR array buffer be able to carry any HEX value from 00 to FF?
To illustrate this...let's say the device were to return 91H, 03H, 00H, FFH, 00H. Let's just say nothing else is in the buffer. Would it look like this?
MyBuffer[1] = $91
MyBuffer[2] = $03
MyBuffer[3] = $00
MyBuffer[4] = $FF
MyBuffer[5] = $00
Cheers,
Matthew
0
Comments
Cheers,
Matthew
This is how I would parse this...
Thanks again!
Cheers,
Matthew
$41 <==> 65 <==> 'A' <==> 0100 0001
Paul
Cheers,
Matthew