2016-05-06 09:58 AM
Hello,
I am working on project where i need to send hid reports to android phone. I know how to send data, but i need to send empty message to unpress all buttons. How can i do that, how can i know, when message is send ? Any information would be usefull2016-05-07 03:50 AM
typedef struct _DCD
{ uint8_t device_config; uint8_t device_state; uint8_t device_status; uint8_t device_old_status; uint8_t device_address; uint8_t connection_status; uint8_t test_mode; uint32_t DevRemoteWakeup; USB_OTG_EP in_ep [USB_OTG_MAX_TX_FIFOS]; USB_OTG_EP out_ep [USB_OTG_MAX_TX_FIFOS]; uint8_t setup_packet [8*3]; USBD_Class_cb_TypeDef *class_cb; USBD_Usr_cb_TypeDef *usr_cb; USBD_DEVICE *usr_device; uint8_t *pConfig_descriptor; } DCD_DEV , *DCD_PDEV; It should be status, but somehow it is not, and i don't know why. it is always the same. Also, adding extremely large delay does not help, it just blocks message all together. so the question is, how to send single push button message, and then release button message ?uint32_t USB_OTG_GetCurrentState (USB_OTG_CORE_HANDLE *pdev)
{ return pdev->dev.evice_state; }After first USBD_HID_SendReport() call, poll ''state'' variable to know the completion of the transfer
(USBD_HID_HandleTypeDef*)(USBD_Device.pClassData)->state == HID_IDLE This is suppose to be as HALL HID example, but it is not tested... How it would sound in SPL?2016-05-12 05:30 AM
Any one ?