Teensy 4.1 core updated for C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
547B

  1. #pragma once
  2. #include "imxrt.h"
  3. typedef struct transfer_struct transfer_t;
  4. struct transfer_struct {
  5. uint32_t next;
  6. volatile uint32_t status;
  7. uint32_t pointer0;
  8. uint32_t pointer1;
  9. uint32_t pointer2;
  10. uint32_t pointer3;
  11. uint32_t pointer4;
  12. uint32_t callback_param;
  13. };
  14. void usb_init(void);
  15. void usb_init_serialnumber(void);
  16. void usb_prepare_transfer(transfer_t *transfer, const void *data, uint32_t len, uint32_t param);
  17. void usb_transmit(int endpoint_number, transfer_t *transfer);