NRF usb peripheral implementation

Minimal driver for the NRF52840 usb peripheral. More...

Detailed Description

Minimal driver for the NRF52840 usb peripheral.

Files

file  nrfusb.h
 USB interface functions for the nrf52840 class devices.
 

Data Structures

struct  nrfusb_t
 nrf usb peripheral device context More...
 

Macros

#define NRF_USB_NUM_PERIPH   1
 Number of USB peripherals on the MCU.
 
#define NRF_USB_BUF_SPACE   USBDEV_EP_BUF_SPACE
 USB endpoint buffer space.
 
#define NRF_USB_NUM_EP   USBDEV_NUM_ENDPOINTS
 Number of USB IN and OUT endpoints.
 

Enumerations

enum  nrfusb_setup_state_t {
  NRFUSB_SETUP_READY, NRFUSB_SETUP_READ, NRFUSB_SETUP_WRITE, NRFUSB_SETUP_ACKOUT,
  NRFUSB_SETUP_ACKIN
}
 nrfusb setup packet state tracker for endpoint 0 handling More...
 

Enumeration Type Documentation

◆ nrfusb_setup_state_t

nrfusb setup packet state tracker for endpoint 0 handling

Enumerator
NRFUSB_SETUP_READY 

Ready for a new setup request

NRFUSB_SETUP_READ 

Read request received

NRFUSB_SETUP_WRITE 

Write request received

NRFUSB_SETUP_ACKOUT 

Expecting an ACK on the out endpoint.

NRFUSB_SETUP_ACKIN 

Expecting an ACK on the in endpoint

Definition at line 52 of file nrfusb.h.