23 #ifndef __USBDHIDSENSOR_H__ 24 #define __USBDHIDSENSOR_H__ 189 #define USBDSENSOR_SUCCESS 0 197 #define USBDSENSOR_TX_ERROR 1 204 #define USBDSENSOR_NOT_CONFIGURED 2 234 }
PACKED tSensorTemperatureReport;
250 void *pvReport, uint32_t ui32Size);
270 #endif // __USBDHIDSENSOR_H__ tUSBDHIDSensorDevice * USBDHIDSensorInit(uint32_t ui32Index, tUSBDHIDSensorDevice *psHIDSensorDevice)
Definition: usbdhidsensor.c:631
Definition: usbdhid.h:798
uint8_t ui8SensorState
8-bit value. Sensor state
Definition: usbdhidsensor.h:222
const uint8_t *const * ppui8StringDescriptors
Definition: usbdhidsensor.h:167
Definition: usbdhidsensor.h:68
uint8_t ui8SensorEvent
8-bit value. Sensor Event
Definition: usbdhidsensor.h:227
const uint16_t ui16MaxPowermA
The maximum power consumption of the device, expressed in milliamps.
Definition: usbdhidsensor.h:132
Definition: usbdevice.h:135
void USBDHIDSensorTerm(tUSBDHIDSensorDevice *psSensor)
Definition: usbdhidsensor.c:881
tUSBDHIDDevice sHIDDevice
Definition: usbdhidsensor.h:97
Definition: usbdhidsensor.h:73
Definition: usbdhid.h:839
const uint32_t ui32NumStringDescriptors
Definition: usbdhidsensor.h:173
const uint16_t ui16VID
The vendor ID that this device is to present in the device descriptor.
Definition: usbdhidsensor.h:122
Definition: usbdhidsensor.h:92
const uint16_t ui16PID
The product ID that this device is to present in the device descriptor.
Definition: usbdhidsensor.h:127
int16_t i16Temp
Signed 16-bit temperature value (-32767 to 32767).
Definition: usbdhidsensor.h:232
tSensorState
Definition: usbdhidsensor.h:63
tHIDReportIdle sReportIdle
Definition: usbdhidsensor.h:108
tUSBDHIDSensorDevice * USBDHIDSensorCompositeInit(uint32_t ui32Index, tUSBDHIDSensorDevice *psHIDSensorDevice, tCompositeEntry *psCompEntry)
Definition: usbdhidsensor.c:703
uint32_t USBDHIDSensorSendReport(tUSBDHIDSensorDevice *psHIDSensor, void *pvReport, uint32_t ui32Size)
Definition: usbdhidsensor.c:800
uint32_t(* tUSBCallback)(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgParam, void *pvMsgData)
Definition: usblib.h:1220
void * pvCBData
Definition: usbdhidsensor.h:153
tUSBDSensorInstance sPrivateData
Definition: usbdhidsensor.h:180
Definition: usbdhidsensor.h:117
Definition: usbdhidsensor.h:78
const tUSBCallback pfnCallback
Definition: usbdhidsensor.h:146
tSensorState iState
Definition: usbdhidsensor.h:102
const uint8_t ui8PwrAttributes
Definition: usbdhidsensor.h:140
USB_CDC_GET/SET_LINE_CODING request-specific data.
Definition: usbaudio.h:288