Rev 6 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6 | Rev 7 | ||
---|---|---|---|
Line 264... | Line 264... | ||
264 | * @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL |
264 | * @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL |
265 | */ |
265 | */ |
266 | static int8_t CDC_Receive_FS(uint8_t* Buf, uint32_t *Len) |
266 | static int8_t CDC_Receive_FS(uint8_t* Buf, uint32_t *Len) |
267 | { |
267 | { |
268 | /* USER CODE BEGIN 6 */ |
268 | /* USER CODE BEGIN 6 */ |
269 | dmx_state(Buf,Len); |
269 | dmx_handle_state(Buf,Len); |
270 | 270 | ||
271 | USBD_CDC_SetRxBuffer(&hUsbDeviceFS, &Buf[0]); |
271 | USBD_CDC_SetRxBuffer(&hUsbDeviceFS, &Buf[0]); |
272 | Len = USBD_CDC_ReceivePacket(&hUsbDeviceFS); |
272 | Len = USBD_CDC_ReceivePacket(&hUsbDeviceFS); |
273 | return (USBD_OK); |
273 | return (USBD_OK); |
274 | /* USER CODE END 6 */ |
274 | /* USER CODE END 6 */ |