All pastes #834501 Raw Edit

Untitled

public text v1 · immutable
#834501 ·published 2007-12-28 07:33 UTC
rendered paste body

struct paylaod_t {
	uint8_t len;
	enum commands_t command;
	uint8_t data[USB_RX_LEN-2];
};

extern volatile uint8_t *usb_rx;


int main(void) {
	int16_t i;
	volatile struct payload_t *payload = (volatile struct payload_t*) usb_rx;

.....
....
	
   switch(payload->command) {  <-- dereferencing pointer to incomplete type