Home

USB Peripheral Human Interface Device Class Driver

image

Contents

1.
2. 8 RoHS
3. 6 7
4. 1 2
5. USB_UTR_t USB USB TP R_usb_cstd_GetUsblpAdr USB USB USB BASIC FW API R_usb_pstd_PcdOpen PCD USB_PCDREG_t R_usb_pstd_DriverRegistration USB BASIC FW API R_usb_phid_driver_start PHID USB_PCDREG_t void usb_phid_driver_registration void USB_PCDREG_t driver 7 driver pipetbl uint16_t amp usb_g
6. CMOS LSI LSI LSI
7. 3 4 5 OA AV
8. uint8_t usb_gphid_EpPtr usb_gphid_EpTbl 2 USB 3 USB_NULL uint8 t usb_ gphid_ ConPtr 5 uint8 t usb_qgphid_StrPtrl usb_gphid_Configration usb_gphid_StringDescriptor0 usb_gphid_StringDescriptor1 usb_gphid_StringDescriptor2 usb_gphid_StringDescriptor3 6 9 1 3 USB USB a R_ USB _Open USB API
9. Renesas RX Toolchain V 2 03 00 2 1 3 API r_usb_phid_ifh 2 1 4 ANSI C99 stdint h 2 1 5 USB BASIC FW USB BASIC FW USB Basic Host and Peripheral Driver Document No RO1AN0S12J r_usb_phid_config h USB_PHID_MODE HID Keyboard mode USB_PHID_KEYBOARD_MODE Mouse mode USB_PHID_MOUSE_MODE Echo mode USB_PHID_ECHO_MODE USB_PHID_USE_PIPE_IN USB IN
10. 9 10 11
11. USB Host HID RSK USB Host Enumeration a APL R01AN0401JJ0220 Rev 2 20 Page 22 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver PHID APL usb_main hid_event_get VENT_CONFIGURED VENT_USB_READ_START 2 R_usb_phid_receive_data EVENT_USB_WRITE_START hid_event_set EVENT_USB_WRITE_START R_usb_phid_send_data VENT_USB_WRITE_COMPLETE VENT_USB_READ_COMPLETE EVENT_USB_READ_START hid_event_set hid_low_power_control R_usb_pstd_TransferEnd hid_low_power_control Figure 7 3 Echo mode R01AN0401JJ0220 Rev 2 20 Page 23 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver Table 7 1 EVENT_CONFIGURD USB EVENT_USB_READ_START
12. 1 2 1 RENESAS http www renesas com 135 0061 3 2 24 http japan renesas com contac 2015 Renesas Electronics Corporation All rights reserved Colophon 4 0
13. USB Basic Host and Peripheral Driver Document No RO1AN0512JJ Page 6 of 35 Renesas USB MCU 3 uh USB Peripheral Human Interface Device Class Driver 4 Table 4 1 Table 4 2 PHID ID Table 4 1 USB USB Basic Host and Peripheral Driver Document No RO1AN2025JJ ID usb phid_Task USB_PHID_TSK USB_PRI 1 PHID Table 4 2 ID USB_PHID_MBX USB_PHID_TSK FIFO PHID R01AN0401JJ0220 Rev 2 20 Page 7 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 5
14. R01AN0401JJ0220 Rev 2 20 Page 20 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver PHID APL usb_main hid_event_get VENT_CONFIGURED ENT_USB_READ_STARL R_usb_phid_receive_data ENT_USB_READ_COMPLETE EVENT_USB_READ_START EVENT_USB_WRITE_START R_usb_phid_send_data ENT_USB_WRITE_COMPLETE EVENT_USB_WRITE_START hid_low_power_control R_usb_pstd_TransferEnd hid_low_power_control USB R_usb_phid_DevicelInformation SB REMOTE_WAKEUP OR 1 EVENT_USB_WRITE_START Figure 7 2 Keyboard mode R01AN0401JJ0220 Rev 2 20 Page 21 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 7 2 4 Echo
15. b PC Windows 7 Windows 8 Windows 8 1 C USB d E1 E20 e E1 E20 APL Application program API Application programing Interface cstd Peripheral amp Host USB BASIC FW HID Human Interface Device class USB Host HID class USB Host HM Hardware Manual PCD Peripheral control driver of USB BASIC FW PDCD Peripheral device class driver device driver and USB class driver PHID Peripheral Human Interface Devices PP pstd Peripheral USB BASIC FW RSK Renesas Starter Kits USB Universal Serial Bus USB BASIC FW USB Basic Peripheral Driver Control Bulk
16. R01AN0401JJ0220 Rev 2 20 Page 18 of 35 Sep 30 2015 ENES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver PHID APL usb_main hid_event_get EVENT_USB_WRITE_START R_usb_phid_send_data hid_low_power_control R usb pstd TransferEnd hid_ low_power_control USB R_usb_phid_Devicelnformation REMOTE_WAKEUP EVENT_USB_WRITE_START Figure 7 1 Mouse mode R01AN0401JJ0220 Rev 2 20 Page 19 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 7 2 3 Keyboar mode Keyboard mode 8 USB Host Enumeration USB_PCDREG 1 devconfig hid_open USB hid open EVENT_CONFIGURED EVENT_CONFIGURED R_usb_phid_receive_data
17. offset 3Bytes 8Bytes 0 b0 Button 1 Modifier keys b1 Button 2 b2 Reserved 1 X displacement Reserved 2 Y displacement Keycode 1 3 Keycode 2 4 Keycode 3 5 Keycode 4 6 Keycode 5 7 Keycode 6 Table 7 5 OUTPUT offset byte 0 bO LED 0 NumLock b1 LED 1 CapsLock b2 LED 2 ScrollLock b3 LED 3 Compose b4 LED 4 Kana 0 1 7 4 PHID r usb_phid_descriptor c R01AN0401JJ0220 Rev 2 20 Page 26 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 8 8 1 PHID Figure 8 1 I i Peripheral Human Interface Device Class Driver PHID USB Basic Peripheral Driver USB Endpoint0 Control Interrupt IN EE USB Host USB Endpoint1 Interrup
18. Run R01AN0401JJ0220 Rev 2 20 Page 29 of 35 Sep 30 2015 RENESAS Renes as USB MCU USB Peripheral Human Interface Device Class Driver 9 9 1 USB 3 PHID USB BASIC FW USB API USB i MCU USB USB PHID USB USB UTR t usb gphid_utr VOId 9 1 1 usb_phid_apl void USB ER t err MCU 9 1 1 MCU usb_mcu_setting USB 9 1 2 USB ptr amp usb_gphid_utr ptr gt ip USB_IPNUM ptr gt ipp R_usb_cstd_GetUsblpAdr ptr gt ip
19. b R_usb cstd_UsblpInit USB R01AN0401JJ0220 Rev 2 20 Page 32 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 9 2 USB R_usb_cstd_Scheduler0 R_usb_cstd_Scheduler _usb_cstd_Scheduler R_usb_cstd_Scheduler R_usb_cstd_CheckSchedule 1 void usSD_papl_mainloop Void while 1 R usb_cstd_ Scheduler
20. RX630 R8A66597 Hi Speed 21 5 HID APL SWf1 SW 2 00 2012 09 30 2 01 2012 2 1 1 5 2 10 2012 4 1 V 2 10 First Release RX63T R8A66593 2 20 2015 9 30 RX63N RX631 R8A66597 R8A66593 A 1
21. HID 5 1 Human Interface Device Class HID PHID 1 USB Host 2 USB Host 3 USB Host 5 2 HID 5 2 1 PHID Table 5 1 Table 5 1 HID Get_Report 0x01 USB Host x Set_Report 0x09 IUSB Host x Get_ldle 0x02 IUSB Host Duration x Set_ldle Ox0A USB Host Duration x Get_Protocol 0x03 IUSB Host x Set_Protocol 0x0B USB Host x Get_Desctiptor 0x06 Descriptor Type Class Standard Class Descriptor Type Report Get_Desctiptor 0x06 HID Descriptor Type Class St
22. USB_UTR_t USB_UTR_t tranlen 6 USB USB_UTR_t 2 1 6 Vo1d usb ap1 Vo1d R usb phid receive data amp hid utr buf size USB CB t amp usb complete SD P 1G oD USB vo1d usb complete USB UTR t mess un16 t datal uint16 data2 USB R01AN0401JJ0220 Rev 2 20 Page 11 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 6 2 3 R usb phid_Devicelnformation void R_usb_phid_DeviceInformation USB_UTR_t ptr uint16_t deviceinfo ptr USB deviceinfo USB deviceinfo 0 USB
23. http japan renesas com USB http japan renesas com prod usb R01AN0401JJ0220 Rev 2 20 Page 1 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 3 4 3 kk 7 pc 7 5 HID 1 lt 8 6 USB PHID Luliiuiiiinnnane 9 7 0 Me 17 8 27 9 i 30 10 e studio CS Muu 34 R01AN0401JJ0220 Rev 2 20 Page 2 of 35 Sep 30 2015 aXENESAS Ren 1 PHID USB BASIC FW esas USB MCU USB Peripheral Human Interface Device Class Driver USB Peripheral PHID PHID USB HID USB Host
24. PCD R_usb_phid_send_data mess 1 API 2 USB USB_UTR_t USB_REGADR_t ipp USB IP uint16 t ip USB IP 3 1 USB UTR t hid utr voi1d usb apl Vo1d R usb phid TransferEnd amp hid utr R01AN0401JJ0220 Rev 2 20 Page 14 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 6 2 6 R usb phid_control_transfer PHID
25. USB USB Host OUT OUT R_usb_phid_receive_data 4 hid_ read_trans_ cp EVENT_USB_READ_COMPLETE EVENT_USB_READ_COMPLETE OUT LED EVENT_USB_READ_START EVENT_USB_WRITE_START R_usb_phid_send_data USB USB Host R_usb_phid_send_data 4 hid_ write_trans_ cb EVENT_USB WRITE_COMPLETE EVENT_USB_WRITE_COMPLETE
26. 3 Echo mode USB Interrupt INIOUT RSK USB Host USB Host Interrupt IN OUT USB Host USB Host 4 USB MCU Tr_uSb_config h USB_CPU_LPW_PP USB_LPWR_USE _ PP a USB MCU b USB MCU Note 1 Keyboard mode Mouse mode Echo mode r_usb_phid_config h 2 Echo mode USB USB Host Keyboard mode Mouse mode Windows 7 Windows 8 Windows 8 1 Windows 10 OS PC USB Host USB R01AN0401JJ0220 Rev 2 20 Pag
27. 1 b1S b8 b7 VBSTS VBUS 0 USBO_VBUS Low 1 USBO_VBUS High b6 b4 DVSOI2 0 000 001 010 011 lxx x Don tcare 0 INTSTS0 1 USB Ox0000 Ox00CO Hi Speed 0x0080 Full Speed 0x0040 Low Speed 2 3 4 0 1 1 API 2 USB USB_UTR_ t USB_REGADR_t ipp USB IP uint16 t ip USB IP USB UTR t hid utr vo1d usb apl Vo1d
28. Enter 1 1 9 0 Ente 1 APL 2 3 USB NULL USB 1 2 7 3 2 USB USB USB HID Table 7 4
29. e b d USB Host HID RSK USB USB_PCDREG t devsuspend hid_suspend hid_suspend EVENT_SUSPEND o f EVENT_SUSPEND hid_low_ power_control HID RSK HID RSK USB Host 9 b d HID RSK USB Host USB USB_PCDREG devdetach hid_ close hid close EVENT_DETACH h EVENT_DETACH R_usb phid_TransferEnd
30. 1 1 USB Host HID USB Host PHID lt lt gt Renesas Starter Kit for RX62N RSK RX62N ROK5562N0C001BR RX62N Renesas Starter Kit for RX630 RSKRX630 ROK505630C001BR RX630 Renesas Starter Kit for RX63T RSKRX63T ROK5563THC010BR RX63T gt a ez studio b RX C C Ver2 03 00 Cc E1 E20 gt a HID PC Windows 7 Windows 8 Windows 8 1 Windows 10
31. void R_usb_phid_control_transfer USB_UTR_t ptr USB_REQUEST_t request uint16_t ctsq ptr USB reduest ctsd USB_CS_IDST Ox00 Idle or setup stage USB_CS_RDDS Ox01 Control read data stage USB_CS_RDSS 0x02 Control read status stage USB_CS_WRDS Ox03 Control write data stage USB_CS_WRSS Ox04 Control write status stage USB_CS_WRND Ox05 Control write no data status stage USB_CS_SOER Ox06 Sequence error HID API void usb apl Vo1d USB PCDREG t driver driver ctrltrans USB CB TRN t amp R usb phid control transfer R usb pstd DriverRegistration amp driver R01AN0401JJ0220 Rev 2 20 Page 15 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 6 2 7 R usb_phid task PHID void R_usb_phi
32. EVENT_USB_READ_COMPLETE EVENT_USB_WRITE_START EVENT_USB_WRITE_COMPLETE EVENT_SUSPEND EVENT_DETACH USB EVENT_NONE Note 1 hid event_get EVENT_NONE 2 Table 7 2 EVENT_CONFIGURD hid_open EVENT_USB_READ_COMPLETE hid_read_trans cb EVENT_USB_WRITE_COMPLETE hid_ write_trans_ cb EVENT_SUSPEND hid_suspend EVENT_DETACH hid_close 7 2 5 typedef struct DEV_INFO uint16 t event_cnt uint16 t event EVENT_MAX DEV_INFO t RO1AN0401JJ0220 Rev 2 20 Sep 30 2015 event_cnt eve7 APL Structure for HID device control 7 Event count Event 7 Page 24 of
33. Interrupt R01AN0401JJ0220 Rev 2 20 Sep 30 2015 aXENESAS Page 3 of 35 Renesas USB MCU USB Peripheral Human Interface Device Class Driver 2 Figure 2 1 PHID Table 2 1 RSK driver LCD output driver LED output driver Switch input driver LCD LED KEY H W User application APL USB Peripheral Control Driver PCD USB Peripheral controller H W Figure 2 1 Table 2 1 PHID USB Host APL PCD USB Host USB Basic FW USB R01AN0401JJ0220 Rev 2 20 Sep 30 2015 N S Page 4 of 35 Renesas USB MCU USB Peripheral Human Interface Device Class Driver 2 1 API API API 2 1 1 MCU USB 2 1 2
34. a File gt Import b General gt Rename amp Import Existing C C Project into Workspace W Rename and Import and Existing C C Project into the workspace E Select an import source type filter text 4 General Archive File Tay Convert CCRX to GNURX Project Tag DS 5 KPIT GNUARM RZ INONE Project Existing Projects into Workspace File System HEW Project Preferences 1 Rename amp Import Existing C C Project into WWorkspace Ti Renesas Common Project File b gt C C cproject Select root directory Rename amp Import Project 3 Specify a new project name Project name Select root directory Select archive file Browse Projects c Finish 3 Build
35. ptr USB buf Size complete buf size USB complete 1 API 2 USB USB_UTR_t USB_REGADR_t ipp USB IP uint16 t jp USB TP 3 2 4 USB OSB_UTR_t 2 1 6 vo1d usb ap1 Vo1d R usb phid send data amp hid utr buf size USB CB t usb complete USB vo1d usb complete USB UTR t mess un16 t data1 uint16 data2 USB R01AN0401JJ0220 Rev 2 20 Page 10 of 35 Sep 30 2015 EINE
36. 1 if USB_FLGSET R_usb cstd CheckSchedule 2 R_usb_pstd_PcdTask PCD R_usb_phid_task HID phid_application 1 R_usb_cstd_Scheduler R_usb_cstd_Scheduler 2 9 3 PHID API R_usb_phid_send_data R_usb_phid_receive_data USB Tnterrupt In Out R_usb_phid_send_data 0 R_usb_phid_receive_data R_usb_phid_send_data USB UTR t ptr USB uint8 t Table 1 u
37. EVENT_USB_WRITE_COMPLETE EVENT_SUSPEND hid_ low_power_control HID RSK HID RSK USB Host oe EVENT_NONE SW1 i HID R_usb_phid_ChangeDeviceState RemoteWakeUp USB Host ii HID Configured USB Host EVENT_USB_WRITE_START b e USB Host HID RSK USB USB_PCDREG 1 devsuspend hid_suspend hid_s
38. USB_PIPE6 USB_PIPE9 USB_PHID_USE_PIPE_OUT USB OUT USB_PIPE6 USB_PIPE9 USB_REPORT_DISCRIPTOR Report Descriptor extern USB_PHID_FUNC SetReport uint8_t Note 1 Echo mode MaxPacketSize 64 Interrupt IN and Interrupt OUT 2 USB_PHID_USE_PIPE_IN USB_PHID_USE_PIPE_OUT R01AN0401JJ0220 Rev 2 20 Page 5 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 3 Keyb
39. KS ne 7 settings A Or SH HordwareDebug C 5 ER SUS e studio 1 rcpc Release e2studio gt 0 gt PB CubeSuite 2 2 3 ty Ctl WU 5 a Sample Na 6 sample 2 M 3 7 U RXIT1 gt iR5F51111axFK YY 110
40. uintl6 res 5 USB R usb pstd DeviceInformation amp hid utr uint16 t res R01AN0401JJ0220 Rev 2 20 Page 12 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 6 2 4 R usb phid driver start PHID Void R_usb_phid_driver_start Vod PHID 1 void usb pstd task start vo1d usb phid driver registration Registration usb papl task start R usb phid driver start R usb pstd usbdriver start USB R01AN0401JJ0220 Rev 2 20 Sep 30 2015 aXENESAS Page 13 of 35 Renesas USB MCU USB Peripheral Human Interface Device Class Driver 6 2 5 R usb phid_TransferEnd USB void R _ usb _ phid TransferEnd USB_UTR_t ptr ptr USB API PCD
41. Package PLOQPO064GA A R5FSIIIIAxFM64p m R5F51111axLF 64pi R5F51111AxLMC36pin R5F51111AxNEC48pin Fe staat 02 OM 0 CC RO CC RX My Sample CWorkSpace Sanplel G wv Figure 10 1 e2studio CS R01AN0401JJ0220 Rev 2 20 Page 34 of 35 Sep 30 2015 EINES S Renesas USB MCU http japan renesas com http japan renesas com inquiry USB Peripheral Human Interface Device Class Driver R01AN0401JJ0220 Rev 2 20 Sep 30 2015 ENESAS Page 35 of 35 Rev 1 00 2011 04 11 1 10 2011 08 10 RX630 R8A66597
42. USB Host 8 0 USB Host 0 0 EVENT_USB_WRITE_START ii 0 EVENT_NONE SW1 HID R_usb_phid_ChangeDeviceState RemoteWakeUp USB Host SWf1 USB Host EVENT_USB WRITE_START b f USB Host HID RSK USB USB_PCDREG devsuspend hid
43. 35 N S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 7 2 6 MCU MCU Table 7 3 Table 7 3 VBUS USB OFF Eee ON Suspend Configured ON Suspend Configured a VBUS OFF APL MCU HID RSK USB Host b HID RSK USB Host USB Host APL MCU USB Host MCU Low power consumption processing hid_l
44. ENESAS R01AN0401JJ0220 Renesas USB MCU Rev 2 20 Sep 30 2015 USB Peripheral Human Interface Device Class Driver USB Peripheral PHID USB Basic Peripheral Driver USB BASIC FW PHID RX62N RX621 RX630 RX63T Universal Serial Bus Revision 2 0 specification RX62N RX621 No RO1UH0033JJ RX630 No RO01UH0040JJ RX63T No ROI1UHO0238JJ USB Basic Host and Peripheral Driver No ROIANO0512JJ po
45. S S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 6 2 2 R usb phid_receive data USB void R_usb_phid_receive_data USB_UTR _t ptr uint8_t buf uint32_t size USB_CB_t complete ptr USB buf size complete buf size USB complete 1 API 2 USB USB_UTR_t USB_REGADR_t ipp USB IP uint16 t jp USB TP 3 2 4 MaxPacketSize n size complete 5 USB
46. _suspend hid_suspend EVENT_SUSPEND o EVENT_SUSPEND hid_ low_power_control HID RSK HID RSK USB Host b f HID RSK USB Host USB USB_PCDREG devdetach hid_ close hid_ close EVENT_DETACH EVENT_DETACH R_usb_phid_TransferEnd USB Host HID RSK USB Host Enumeration a APL
47. andard Class Descriptor Type HID USB Device Class Definitions for Human Interface Device Revision1 1 7 RO1AN0401JJ0220 Rev 2 20 Sep 30 2015 ENESAS Page 8 of 35 Renesas USB MCU USB Peripheral Human Interface Device Class Driver 6 USB PHID 6 1 PHID 1 USB Host 2 HID 6 2 PHID API Table 6 1 PHID API Table 6 1 PHID API R_usb_phid_send_data USB R_usb_phid_receive_data USB R_usb_phid_Devicelnformation R_usb_phid_driver_start PHID R_usb_phid_TransferEnd USB R_usb_phid_task PHID R_usb_phid_control_transfer PHID R01AN0401JJ0220 Rev 2 20 Sep 30 2015 aXENESAS Page 9 of 35 Renesas USB MCU USB Peripheral Human Interface Device Class Driver 6 2 1 R usb phid_send_data USB void R_usb_phid_send_data USB_UTR _t ptr uint8_t buf uint32_t size USB_CB_t complete
48. d_task Void PHID 1 API Vo1d usb ap1 Vo1d while 1 if USB ELGSET R usb cstd _ Scheduler PCD Task R Usb pstd PcdTask Periphera HID Task R usb phid task Peripheral HID Application Task usb phid main task R01AN0401JJ0220 Rev 2 20 Page 16 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 7 7 1 PHID APL 1 Keyboard mode RSK USB Host USB Host RSK RSK Interrupt IN USB Host 2 Mouse mode RSK USB Host USB Host RSK RSK Interrupt IN USB Host
49. e 17 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 7 2 APL 2 7 2 1 MCU USB USB 7 2 2 Mouse mode Mouse mode 8 USB Host Enumeration USB_PCDREG devconfig hid_open USB hid_ open EVENT_CONFIGURED EVENT_USB_WRITE_START R_usb_phid_send_data USB PR _usb_phid_send_data 4 hid write_ trans cb EVENT_USB WRITE_COMPLETE
50. int32 t SIZ6 USB_CB t complete 1 R_usb_phid_receive_data USB UTR t ptr USB uint8_t Table 1 uint32 1 size USB CB t complete 1 1 R01AN0401JJ0220 Rev 2 20 Page 33 of 35 Sep 30 2015 ENESAS Renesas USB MCU USB Peripheral Human Interface Device Class Driver 10 estudio CS PHID es studio PHID CS CS lg ra lt e2studio workspace gt Sample e lt studio CubeSuite me High performance lt Embedded Workshop PM
51. mode Echo mode a USB Host Enumeration USB_PCDREG t devconfig hid_open USB hid_ open EVENT_CONFIGURED b EVENT_CONFIGURED USB Host R_usb_phid_ receive_data R_usb _phid receive_data 4 hid read trans cb EVENT_USB_READ_COMPLETE c EVENT_USB_READ_COMPLETE b USB Host R_usb_phid_send_data R_usb_phid_send_data 4 hid write trans cp EVENT_USB_WRITE_COMPLETE d EVENT_USB_WRITE_COMPLETE EVENT_USB_READ_START
52. oard mode Echo mode USB_PHID_USE_PIPE_OUT 2 1 6 struct USB_UTR_t USB_MH _ t msghead uint16_t msginfo uint16_t keyword union USB_REGADR_t ipp USB_REGADR1_tipp1l uint16_t ip uint16_t result USB CB_t complete void tranadr uint32 t tranlen uint16_t setup uint16_t status uint16_t pipectr uint8_t errcnt uint8_t segment void usr_data R01AN0401JJ0220 Rev 2 20 Sep 30 2015 OS H USB BASIC F W USB IP USBb 7 USB IP USBA USBAa USBIP USB USB 9 USB USB 9 PIPECTR 9 7 N S API
53. ow_power_control Acquisition USB device information USB device information Change MCU to the software standby mode USB suspend Change MCU to Sleep mode VBUS OFF amp amp USB suspend Figure7 4 7 3 7 3 1 1 1 SW1 2 SW2 R01AN0401JJ0220 Rev 2 20 Page 25 of 35 Sep 30 2015 ENES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 3 SW3 2 2 SW2 3 SW3 a
54. p usb_phid_smpl_resume_ cb 7 driver interface USB_CB_INFO_t amp usb_cstd_DummyFunction 7 driver ctrltrans USB_CB_TRN_t amp R_usb_phid_control_transfer FT IO PCD R_usb_pstd_DriverRegistration ptr amp driver ee Im 1 USB Basic Host and Peripheral Document No RO1AN0512JJ R01AN0401JJ0220 Rev 2 20 Page 31 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver uint16 tusb_qphid_EpTbI USB_PHID_USE_PIPE_IN USB_INT USB_DIR_P_IN USB_EP1 USB_NONE USB_PHID_MAXP USB_NONE USB_CUSE USB_PHID_USE_PIPE_OUT USB_INT USB_DIR_P_OUT USB_EP2 USB_NONE USB_PHID_MAXP USB_NONE USB_CUSE USB_PDTBLEND
55. phid_EpPtr 1 Device Descriptor 7 driver devicetbl uint8_t amp usbD_qphid_DeviceDescriptor Qualifier Descriptor 7 driver qualitbl uint8_tf USB_NULL 3 Configuration Descriptor 7 driver configtD uint8_t usb_gphid_ConPtr 2 4 Other Configuration Descriptor 7 driver othertbI uint8_ FUSB_NULL 3 String Descriptor 7 driver stringtbl uint8_ 9usb_gphid_StrPtr 2 5 7 driver classint USB_CB_INFO_t amp usb_cstd_DummyFunction driver devdefault USB_CB_INFO_t amp usb_cstd_DummyFunction driver devconfig a OB INFO_t amp usb_phid smpl_ open 6 USB 7 driver devdetach CB_INFO i phid_smpl_close 6 7 driver devsusDend ca CB_INFO_1 amp usb_phid_suspend_cb 7 driver devresume USB D0 INFO_t am
56. t USB RORT Interrupt OUT OR Endpoint2 Interrupt OS Windows 7 Windows 8 Windows 8 1 Windows 10 etc Figure 8 1 R01AN0401JJ0220 Rev 2 20 Page 27 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver 8 2 e2studio a e2studio b e2 studio Workspace Launcher le Works Fe Select a workspace e2 studio stores your projects in a folder called a workspace Choose a workspace folder to use for this session Workspace Use this as the default and do not ask again OK Cancel c Workbench e studio Overview Renesas Tutorials O Get an overview of the features Go through Renesas Tutorials Renesas Samples What s New 9 Try out the Renesas Samples Find out what is new First Steps Workbench Take your first steps 2 Go to the e2 studio workbench R01AN0401JJ0220 Rev 2 20 Page 28 of 35 Sep 30 2015 aXENESAS Renesas USB MCU USB Peripheral Human Interface Device Class Driver
57. usb_cstd_ Schelnit R _ usb_pstd_PecdOpen usb_phid_driver_registration R _ usb_phid driver start ptr USB 9 1 3 USB err R_USB_Open if err USB_SUCCESS R _ usb _cstd_ Usblplnit ptr USB_PERI usb_Dpapl_mainloop MCU USB USB USB 1 Table9 1 USB USB_VBUS USB VBUS PHID USB BASIC FW MCU MCU 9 1 2 USB R01AN0401JJ0220 Rev 2 20 Page 30 of 35 Sep 30 2015 EINES S Renesas USB MCU USB Peripheral Human Interface Device Class Driver USB USB BASIC FW
58. uspend EVENT_SUSPEND o EVENT_SUSPEND hid_ low_power_control HID RSK HID RSK USB Host b e HID RSK USB Host USB USB_PCDREG_t devdetach hid_close hid close EVENT_DETACH EVENT_DETACH R_usb phid_TransferEnd USB Host HID RSK USB Host Enumeration a APL

Download Pdf Manuals

image

Related Search

Related Contents

Guía del usuario  USER MANUAL - Human  はかり付ストレッチャー DP-7300PW 取扱説明書  cahier complet - Ecole de la paix  取扱説明書 - M  Dans les pages qui suivent, vous trouverez la fiche    Fujitsu AMILO Xi 2428, 15.4", T8100, 3GB DDR-2, 320GB  Digital Industrial Gauge Operating Instructions  

Copyright © All rights reserved.
Failed to retrieve file