Skip to content

Instantly share code, notes, and snippets.

@JamPsym
Created April 11, 2020 14:32
Show Gist options
  • Save JamPsym/871497f5537f19d8bd296dacbe2bcb4d to your computer and use it in GitHub Desktop.
Save JamPsym/871497f5537f19d8bd296dacbe2bcb4d to your computer and use it in GitHub Desktop.
jakże robić definicje wartości pól dla strukturek
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;
17 };
// to wiadomo ze spoko
#define BUFFER_DESCRIPTOR_TABLE 0x0020
// ale np. w HByte wartości wIndex są wartości {1,2,3....}
enum wIndexValues_e {
pies =1,
kot =2,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment