dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_usbhook.c File Reference
#include "pios.h"
#include "pios_usb.h"
#include "pios_usbhook.h"
#include "pios_usb_defs.h"
#include "pios_usb_hid_pwr.h"
#include "pios_usb_cdc_priv.h"
#include "pios_usb_board_data.h"
#include "usb_lib.h"

Go to the source code of this file.

Functions

void PIOS_USBHOOK_RegisterDevice (const uint8_t *desc, uint16_t desc_size)
 
void PIOS_USBHOOK_RegisterConfig (uint8_t config_id, const uint8_t *desc, uint16_t desc_size)
 
void PIOS_USBHOOK_RegisterString (enum usb_string_desc string_id, const uint8_t *desc, uint16_t desc_size)
 
void PIOS_USB_HID_RegisterHidDescriptor (const uint8_t *desc, uint16_t desc_size)
 
void PIOS_USB_HID_RegisterHidReport (const uint8_t *desc, uint16_t desc_size)
 
void PIOS_USBHOOK_Deactivate (void)
 
static void PIOS_USBHOOK_Init (void)
 
static void PIOS_USBHOOK_Reset (void)
 
static void PIOS_USBHOOK_Status_In (void)
 
static void PIOS_USBHOOK_Status_Out (void)
 
static RESULT PIOS_USBHOOK_Data_Setup (uint8_t RequestNo)
 
static RESULT PIOS_USBHOOK_NoData_Setup (uint8_t RequestNo)
 
static RESULT PIOS_USBHOOK_Get_Interface_Setting (uint8_t Interface, uint8_t AlternateSetting)
 
static const uint8_t * PIOS_USBHOOK_GetDeviceDescriptor (uint16_t Length)
 
static const uint8_t * PIOS_USBHOOK_GetConfigDescriptor (uint16_t Length)
 
static const uint8_t * PIOS_USBHOOK_GetStringDescriptor (uint16_t Length)
 
static void PIOS_USBHOOK_SetConfiguration (void)
 
static void PIOS_USBHOOK_SetDeviceAddress (void)
 
static RESULT PIOS_USBHOOK_SetProtocol (void)
 
static const uint8_t * PIOS_USBHOOK_GetProtocolValue (uint16_t Length)
 
static const uint8_t * PIOS_USBHOOK_GetReportDescriptor (uint16_t Length)
 
static const uint8_t * PIOS_USBHOOK_GetHIDDescriptor (uint16_t Length)
 
uint8_t * PIOS_USB_CDC_SetLineCoding (uint16_t Length)
 
const uint8_t * PIOS_USB_CDC_GetLineCoding (uint16_t Length)
 
RESULT PIOS_USB_CDC_SetControlLineState (void)
 

Variables

static ONE_DESCRIPTOR Device_Descriptor
 
static ONE_DESCRIPTOR Config_Descriptor
 
static ONE_DESCRIPTOR String_Descriptor [4]
 
static ONE_DESCRIPTOR Hid_Descriptor
 
static ONE_DESCRIPTOR Hid_Report_Descriptor
 
__IO uint8_t EXTI_Enable
 
uint32_t ProtocolValue
 
DEVICE Device_Table
 
DEVICE_PROP Device_Property
 
USER_STANDARD_REQUESTS User_Standard_Requests