Loading...
Searching...
No Matches
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_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...
 

Macro Definition Documentation

◆ NRF_USB_NUM_EP

#define NRF_USB_NUM_EP   USBDEV_NUM_ENDPOINTS

Number of USB IN and OUT endpoints.

Definition at line 42 of file nrfusb.h.

◆ NRF_USB_NUM_PERIPH

#define NRF_USB_NUM_PERIPH   1

Number of USB peripherals on the MCU.

Definition at line 37 of file nrfusb.h.

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 47 of file nrfusb.h.