|
|
|
|
|
|
|
|
static bool allocate_interrupt_pipe_bandwidth(Pipe_t *pipe, |
|
|
static bool allocate_interrupt_pipe_bandwidth(Pipe_t *pipe, |
|
|
uint32_t maxlen, uint32_t interval); |
|
|
uint32_t maxlen, uint32_t interval); |
|
|
static void add_qh_to_periodic_schedule(Pipe_t *pipe); |
|
|
static void add_qh_to_periodic_schedule(Pipe_t *pipe); |
|
|
|
|
|
static bool followup_Transfer(Transfer_t *transfer); |
|
|
|
|
|
static void followup_Error(void); |
|
|
protected: |
|
|
protected: |
|
|
#ifdef USBHOST_PRINT_DEBUG |
|
|
#ifdef USBHOST_PRINT_DEBUG |
|
|
static void print(const Transfer_t *transfer); |
|
|
static void print(const Transfer_t *transfer); |
|
|
|
|
|
|
|
|
static void println() { Serial.println(); } |
|
|
static void println() { Serial.println(); } |
|
|
static void print(uint32_t n, uint8_t b) { Serial.print(n, b); } |
|
|
static void print(uint32_t n, uint8_t b) { Serial.print(n, b); } |
|
|
static void println(uint32_t n, uint8_t b) { Serial.println(n, b); } |
|
|
static void println(uint32_t n, uint8_t b) { Serial.println(n, b); } |
|
|
static void println(const char *s, int n) { |
|
|
|
|
|
Serial.print(s); Serial.println(n); } |
|
|
|
|
|
static void println(const char *s, unsigned int n) { |
|
|
|
|
|
Serial.print(s); Serial.println(n); } |
|
|
|
|
|
static void println(const char *s, long n) { |
|
|
|
|
|
Serial.print(s); Serial.println(n); } |
|
|
|
|
|
static void println(const char *s, unsigned long n) { |
|
|
|
|
|
Serial.print(s); Serial.println(n); } |
|
|
|
|
|
static void println(const char *s, int n, uint8_t b) { |
|
|
|
|
|
|
|
|
static void print(const char *s, int n, uint8_t b = DEC) { |
|
|
|
|
|
Serial.print(s); Serial.print(n, b); } |
|
|
|
|
|
static void print(const char *s, unsigned int n, uint8_t b = DEC) { |
|
|
|
|
|
Serial.print(s); Serial.print(n, b); } |
|
|
|
|
|
static void print(const char *s, long n, uint8_t b = DEC) { |
|
|
|
|
|
Serial.print(s); Serial.print(n, b); } |
|
|
|
|
|
static void print(const char *s, unsigned long n, uint8_t b = DEC) { |
|
|
|
|
|
Serial.print(s); Serial.print(n, b); } |
|
|
|
|
|
static void println(const char *s, int n, uint8_t b = DEC) { |
|
|
Serial.print(s); Serial.println(n, b); } |
|
|
Serial.print(s); Serial.println(n, b); } |
|
|
static void println(const char *s, unsigned int n, uint8_t b) { |
|
|
|
|
|
|
|
|
static void println(const char *s, unsigned int n, uint8_t b = DEC) { |
|
|
Serial.print(s); Serial.println(n, b); } |
|
|
Serial.print(s); Serial.println(n, b); } |
|
|
static void println(const char *s, long n, uint8_t b) { |
|
|
|
|
|
|
|
|
static void println(const char *s, long n, uint8_t b = DEC) { |
|
|
Serial.print(s); Serial.println(n, b); } |
|
|
Serial.print(s); Serial.println(n, b); } |
|
|
static void println(const char *s, unsigned long n, uint8_t b) { |
|
|
|
|
|
|
|
|
static void println(const char *s, unsigned long n, uint8_t b = DEC) { |
|
|
Serial.print(s); Serial.println(n, b); } |
|
|
Serial.print(s); Serial.println(n, b); } |
|
|
#else |
|
|
#else |
|
|
static void print(const Transfer_t *transfer) {} |
|
|
static void print(const Transfer_t *transfer) {} |
|
|
|
|
|
|
|
|
static void println() {} |
|
|
static void println() {} |
|
|
static void print(uint32_t n, uint8_t b) {} |
|
|
static void print(uint32_t n, uint8_t b) {} |
|
|
static void println(uint32_t n, uint8_t b) {} |
|
|
static void println(uint32_t n, uint8_t b) {} |
|
|
static void println(const char *s, int n) {} |
|
|
|
|
|
static void println(const char *s, unsigned int n) {} |
|
|
|
|
|
static void println(const char *s, long n) {} |
|
|
|
|
|
static void println(const char *s, unsigned long n) {} |
|
|
|
|
|
static void println(const char *s, int n, uint8_t b) {} |
|
|
|
|
|
static void println(const char *s, unsigned int n, uint8_t b) {} |
|
|
|
|
|
static void println(const char *s, long n, uint8_t b) {} |
|
|
|
|
|
static void println(const char *s, unsigned long n, uint8_t b) {} |
|
|
|
|
|
|
|
|
static void print(const char *s, int n, uint8_t b = DEC) {} |
|
|
|
|
|
static void print(const char *s, unsigned int n, uint8_t b = DEC) {} |
|
|
|
|
|
static void print(const char *s, long n, uint8_t b = DEC) {} |
|
|
|
|
|
static void print(const char *s, unsigned long n, uint8_t b = DEC) {} |
|
|
|
|
|
static void println(const char *s, int n, uint8_t b = DEC) {} |
|
|
|
|
|
static void println(const char *s, unsigned int n, uint8_t b = DEC) {} |
|
|
|
|
|
static void println(const char *s, long n, uint8_t b = DEC) {} |
|
|
|
|
|
static void println(const char *s, unsigned long n, uint8_t b = DEC) {} |
|
|
#endif |
|
|
#endif |
|
|
static void mk_setup(setup_t &s, uint32_t bmRequestType, uint32_t bRequest, |
|
|
static void mk_setup(setup_t &s, uint32_t bmRequestType, uint32_t bRequest, |
|
|
uint32_t wValue, uint32_t wIndex, uint32_t wLength) { |
|
|
uint32_t wValue, uint32_t wIndex, uint32_t wLength) { |