This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IQ200: | |
uint8_t tbuffer[512]; | |
void transmit_float(float* fbuffer, size_t tran_length) | |
{ | |
// transform float into uint8_t | |
for(size_t j=0; j<tran_length; j++) | |
{ | |
union float_union {float f; uint8_t f_ui[4];} uf; | |
uf.f = fbuffer[j]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 struct setup_data { | |
8 struct bmRequestType_t bmRequestType; | |
9 uint8_t bRequest; | |
10 uint16_t : 16; | |
11 uint16_t wValue; | |
12 uint16_t : 16; | |
13 uint16_t wIndex; | |
14 uint16_t : 16; | |
15 uint16_t wLength; | |
16 uint16_t : 16; |