dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Defines for board specific usb information. More...

Files

file  pios_usb.h
 USB HID layer functions header.
 
file  pios_usb_priv.h
 USB private definitions.
 

Data Structures

struct  pios_usb_cfg
 

Macros

#define PIOS_USB_BOARD_CDC_DATA_LENGTH   64
 
#define PIOS_USB_BOARD_CDC_MGMT_LENGTH   32
 
#define PIOS_USB_BOARD_HID_DATA_LENGTH   64
 
#define PIOS_USB_BOARD_VENDOR_ID   DRONIN_VID_DRONIN_FIRMWARE
 
#define PIOS_USB_BOARD_PRODUCT_ID   DRONIN_PID_DRONIN_FIRMWARE
 
#define PIOS_USB_BOARD_EP_NUM   4
 
#define PIOS_USB_BOARD_DEVICE_VER   USB_OP_DEVICE_VER(0, USB_OP_BOARD_MODE_FW)
 
#define PIOS_USB_BOARD_SN_SUFFIX   "+FW"
 

Functions

int32_t PIOS_USB_Reenumerate ()
 
int32_t PIOS_USB_ChangeConnectionState (bool connected)
 
bool PIOS_USB_CableConnected (uintptr_t id)
 
bool PIOS_USB_CheckAvailable (uintptr_t id)
 
bool PIOS_USB_HaveVSense (uintptr_t id)
 
int32_t PIOS_USB_Init (uintptr_t *usb_id, const struct pios_usb_cfg *cfg)
 

Detailed Description

Defines for board specific usb information.

PIOS USB device implementation.

PIOS interface for USB device driver.

Macro Definition Documentation

#define PIOS_USB_BOARD_CDC_DATA_LENGTH   64

Definition at line 37 of file pios_usb_board_data.h.

#define PIOS_USB_BOARD_CDC_MGMT_LENGTH   32

Definition at line 38 of file pios_usb_board_data.h.

#define PIOS_USB_BOARD_DEVICE_VER   USB_OP_DEVICE_VER(0, USB_OP_BOARD_MODE_FW)

Definition at line 70 of file pios_usb_board_data.h.

#define PIOS_USB_BOARD_EP_NUM   4

Definition at line 69 of file pios_usb_board_data.h.

#define PIOS_USB_BOARD_HID_DATA_LENGTH   64

Definition at line 39 of file pios_usb_board_data.h.

#define PIOS_USB_BOARD_PRODUCT_ID   DRONIN_PID_DRONIN_FIRMWARE

Definition at line 67 of file pios_usb_board_data.h.

#define PIOS_USB_BOARD_SN_SUFFIX   "+FW"

Definition at line 71 of file pios_usb_board_data.h.

#define PIOS_USB_BOARD_VENDOR_ID   DRONIN_VID_DRONIN_FIRMWARE

Definition at line 66 of file pios_usb_board_data.h.

Function Documentation

bool PIOS_USB_CableConnected ( uintptr_t  id)
int32_t PIOS_USB_ChangeConnectionState ( bool  connected)
bool PIOS_USB_CheckAvailable ( uintptr_t  id)
bool PIOS_USB_HaveVSense ( uintptr_t  id)
int32_t PIOS_USB_Init ( uintptr_t *  usb_id,
const struct pios_usb_cfg cfg 
)
int32_t PIOS_USB_Reenumerate ( )