135 virtual void enumDevices(std::function<
bool(
SPDEVICE)>& funEnum,
bool bConnectedOnly =
true) = 0;
virtual GF_RET_CODE startScan(GF_UINT8 rssiThreshold=200)=0
Start gForce scan.
virtual GF_RET_CODE deinit()=0
De-initialize the Hub instance.
gfsPtr< Device > SPDEVICE
the strong pointer to Device
Definition: gfTypes.h:119
virtual GF_RET_CODE init(GF_UINT8 comPort=0)=0
Initialize the Hub instance.
virtual GF_RET_CODE stopScan()=0
Stop gForce scan.
virtual HubState getState()=0
Get hub state.
virtual void setWorkMode(WorkMode newMode)=0
Set work mode.
virtual GF_RET_CODE run(GF_UINT32 ms, bool once=false)=0
run message polling
virtual tstring getDescString() const =0
A description text of the hub.
std::string tstring
std::string type definition for ANSI/UNICODE convenience
Definition: gfTypes.h:98
HubState
Possible Hub states.
Definition: gfTypes.h:195
unsigned int GF_UINT32
type definition
Definition: gfTypes.h:73
The namespace in which all of the gForceSDK project definitions are contained.
Definition: Device.h:42
size_t GF_SIZE
type definition
Definition: gfTypes.h:78
WorkMode
Defines how callbacks are called in threads.
Definition: gfTypes.h:123
virtual WorkMode getWorkMode() const =0
Get work mode.
GF_RET_CODE
Defines possible return values of methods.
Definition: gfTypes.h:138
virtual SPDEVICE findDevice(GF_UINT8 addrType, tstring address)=0
Find a gForce device.
virtual GF_SIZE getNumOfDevices(bool bConnectedOnly=true) const =0
Get the number of all devices found.
virtual void enumDevices(std::function< bool(SPDEVICE)> &funEnum, bool bConnectedOnly=true)=0
Enumurate devices.
virtual GF_RET_CODE registerListener(const gfwPtr< HubListener > &listener)=0
Register HubListener.
virtual GF_RET_CODE unRegisterListener(const gfwPtr< HubListener > &listener)=0
Un-register HubListener.
std::weak_ptr< T > gfwPtr
The weak pointer.
Definition: gfTypes.h:110
The abstract of a gForce Hub.
Definition: Hub.h:55
The basic type definitions using in gForceSDK.
unsigned char GF_UINT8
type definition
Definition: gfTypes.h:65