dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_usbhook.h File Reference

APIs for PIOS_USBHOOK layer. More...

#include <stdbool.h>
#include <stdint.h>
#include "pios_usb_defs.h"

Go to the source code of this file.

Data Structures

struct  pios_usbhook_descriptor
 
struct  pios_usb_ifops
 

Typedefs

typedef bool(* pios_usbhook_epcb )(uintptr_t context, uint8_t epnum, uint16_t len)
 

Enumerations

enum  usb_string_desc
 

Functions

enum usb_string_desc __attribute__ ((packed))
 
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_USBHOOK_RegisterIfOps (uint8_t ifnum, struct pios_usb_ifops *ifops, uintptr_t context)
 
void PIOS_USBHOOK_RegisterEpInCallback (uint8_t epnum, uint16_t max_len, pios_usbhook_epcb cb, uintptr_t context)
 
void PIOS_USBHOOK_RegisterEpOutCallback (uint8_t epnum, uint16_t max_len, pios_usbhook_epcb cb, uintptr_t context)
 
void PIOS_USBHOOK_DeRegisterEpInCallback (uint8_t epnum)
 
void PIOS_USBHOOK_DeRegisterEpOutCallback (uint8_t epnum)
 
void PIOS_USBHOOK_CtrlTx (const uint8_t *buf, uint16_t len)
 
void PIOS_USBHOOK_CtrlRx (uint8_t *buf, uint16_t len)
 
void PIOS_USBHOOK_EndpointTx (uint8_t epnum, const uint8_t *buf, uint16_t len)
 
void PIOS_USBHOOK_EndpointRx (uint8_t epnum, uint8_t *buf, uint16_t len)
 
void PIOS_USBHOOK_Activate (void)
 
void PIOS_USBHOOK_Deactivate (void)
 

Variables

 USB_STRING_DESC_LANG = 0
 
 USB_STRING_DESC_VENDOR = 1
 
 USB_STRING_DESC_PRODUCT = 2
 
 USB_STRING_DESC_SERIAL = 3
 
struct pios_usb_ifops __attribute__
 

Detailed Description

APIs for PIOS_USBHOOK layer.

Author
The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
Tau Labs, http://taulabs.org, Copyright (C) 2012-2013
See Also
The GNU Public License (GPL) Version 3

Definition in file pios_usbhook.h.