Driver for Me USB Host module.
More...
#include <src/MeUSBHost.h>
|
|
bool | ch375_online |
| |
|
bool | device_online |
| |
|
bool | device_ready |
| |
|
uint8_t | RECV_BUFFER [CH375_MAX_DATA_LEN] |
| |
Driver for Me USB Host module.
Class: MeUSBHost
- Description
- Declaration of Class MeUSBHost.
- Copyright (C), 2012-2016, MakeBlock
◆ MeUSBHost() [1/2]
Alternate Constructor which can call your own function to map the USB Host to arduino port, no pins are used or initialized here.
- Parameters
-
◆ MeUSBHost() [2/2]
| MeUSBHost::MeUSBHost |
( |
uint8_t |
port | ) |
|
Alternate Constructor which can call your own function to map the USB Host to arduino port,
the slot2 pin will be used for key pin.
- Parameters
-
| [in] | port | - RJ25 port from PORT_1 to M2 |
◆ host_recv()
| uint8_t MeUSBHost::host_recv |
( |
| ) |
|
- Function
- host_recv
- Description
- The USB Host receive data.
- Parameters
-
- Output
- None
- Returns
- Return the length of data.
- Others
- None
◆ init()
| void MeUSBHost::init |
( |
int8_t |
type | ) |
|
- Function
- init
- Description
- Init the data Bus.
- Parameters
-
| [in] | type | - The type of data Bus. |
- Output
- None
- Returns
- None
- Others
- None
◆ initHIDDevice()
| int16_t MeUSBHost::initHIDDevice |
( |
| ) |
|
- Function
- initHIDDevice
- Description
- Init the HID Device.
- Parameters
-
- Output
- None
- Returns
- The result of initHIDDevice's action.
- Others
- None
◆ probeDevice()
| int16_t MeUSBHost::probeDevice |
( |
| ) |
|
- Function
- probeDevice
- Description
- Prode of USB Host Device.
- Parameters
-
- Output
- None
- Returns
- The result of device's probe.
- Others
- None
◆ resetBus()
| void MeUSBHost::resetBus |
( |
| ) |
|
- Function
- resetBus
- Description
- Reset the data Bus.
- Parameters
-
- Output
- None
- Returns
- None
- Others
- None
The documentation for this class was generated from the following files: