Bluetooth Framework C++ Edition

◆ HalWrite()

virtual int HalWrite ( const unsigned char *const  Report,
const unsigned char  Size 
)
protectedpure virtual

Implements a hardware-dependent code that writes data report to the connected Wii Remote controller.

Parameters
ReportThe pointer to the report data buffer.
SizeThe report data size.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

A derived class must override this method to implement a hardware-dependent code that sends data to the connected device. The method executes in the main thread and must be synchronous.

A derived implementation must always call this method in case of the derived HalConnect failed.

Implemented in CwclWiiRemoteHidClientConnection.