refactor usb transaction varts and flags

This commit is contained in:
optixx
2009-09-22 23:43:27 +02:00
parent b7cc7ea935
commit a341e10efc
5 changed files with 100 additions and 84 deletions

View File

@@ -39,4 +39,21 @@
#define USB_MODE_AVR 11
#define USB_AVR_RESET 12
typedef struct usb_transaction_t {
uint32_t req_addr;
uint32_t req_addr_end;
uint8_t req_bank;
uint32_t req_bank_size;
uint16_t req_bank_cnt;
uint8_t req_percent;
uint8_t req_percent_last;
uint8_t req_state;
uint8_t rx_remaining;
uint8_t tx_remaining ;
uint16_t sync_errors;
uint8_t tx_buffer[32];
uint8_t rx_buffer[8];
} usb_transaction_t;
#endif /* __REQUESTS_H_INCLUDED__ */