Data Structures | Defines

hal/nrf24lu1p/usb.h File Reference

This file contain definitions related to the USB-controller and internal structures. More...

#include <stdint.h>
#include "hal_usb.h"

Go to the source code of this file.

Data Structures

struct  packetizer_t

Defines

#define USB_ENDPOINT_IN_COUNT   5
#define USB_ENDPOINT_OUT_COUNT   5
#define USB_EP0_HSNAK()   do { ep0cs = 0x02; } while(0)
#define USB_EP0_STALL()   do { ep0cs = 0x11; } while(0)
#define USB_EP0_DSTALL()   do { ep0cs |= 0x10; } while(0)
#define INT_SUDAV   0x00
#define INT_SOF   0x04
#define INT_SUTOK   0x08
#define INT_SUSPEND   0x0C
#define INT_USBRESET   0x10
#define INT_EP0IN   0x18
#define INT_EP0OUT   0x1C
#define INT_EP1IN   0x20
#define INT_EP1OUT   0x24
#define INT_EP2IN   0x28
#define INT_EP2OUT   0x2C
#define INT_EP3IN   0x30
#define INT_EP3OUT   0x34
#define INT_EP4IN   0x38
#define INT_EP4OUT   0x3C
#define INT_EP5IN   0x40
#define INT_EP5OUT   0x44
#define BM_REQUEST_TYPE   0
#define B_REQUEST   1
#define W_VALUE   2
#define W_INDEX   4
#define W_LENGTH   6

Detailed Description

This file contain definitions related to the USB-controller and internal structures.

Definition in file usb.h.


Define Documentation

#define USB_ENDPOINT_IN_COUNT   5

Definition at line 25 of file usb.h.

#define USB_ENDPOINT_OUT_COUNT   5

Definition at line 26 of file usb.h.

#define USB_EP0_HSNAK (  )    do { ep0cs = 0x02; } while(0)

Definition at line 28 of file usb.h.

#define USB_EP0_STALL (  )    do { ep0cs = 0x11; } while(0)

Definition at line 29 of file usb.h.

#define USB_EP0_DSTALL (  )    do { ep0cs |= 0x10; } while(0)

Definition at line 30 of file usb.h.

#define INT_SUDAV   0x00

Definition at line 32 of file usb.h.

#define INT_SOF   0x04

Definition at line 33 of file usb.h.

#define INT_SUTOK   0x08

Definition at line 34 of file usb.h.

#define INT_SUSPEND   0x0C

Definition at line 35 of file usb.h.

#define INT_USBRESET   0x10

Definition at line 36 of file usb.h.

#define INT_EP0IN   0x18

Definition at line 37 of file usb.h.

#define INT_EP0OUT   0x1C

Definition at line 38 of file usb.h.

#define INT_EP1IN   0x20

Definition at line 39 of file usb.h.

#define INT_EP1OUT   0x24

Definition at line 40 of file usb.h.

#define INT_EP2IN   0x28

Definition at line 41 of file usb.h.

#define INT_EP2OUT   0x2C

Definition at line 42 of file usb.h.

#define INT_EP3IN   0x30

Definition at line 43 of file usb.h.

#define INT_EP3OUT   0x34

Definition at line 44 of file usb.h.

#define INT_EP4IN   0x38

Definition at line 45 of file usb.h.

#define INT_EP4OUT   0x3C

Definition at line 46 of file usb.h.

#define INT_EP5IN   0x40

Definition at line 47 of file usb.h.

#define INT_EP5OUT   0x44

Definition at line 48 of file usb.h.

#define BM_REQUEST_TYPE   0

Definition at line 50 of file usb.h.

#define B_REQUEST   1

Definition at line 51 of file usb.h.

#define W_VALUE   2

Definition at line 52 of file usb.h.

#define W_INDEX   4

Definition at line 53 of file usb.h.

#define W_LENGTH   6

Definition at line 54 of file usb.h.