C# Class Bloxy.USBBluetoothAdapter

Show file Open project: brandonlw/bloxy

Public Methods

Method Description
AcceptConnectionRequest ( ulong bdAddr, byte role ) : void
Close ( ) : void
Connect ( InquiryResult result ) : void
Connect ( ulong bdAddr, byte pageScanRepetitionMode, ushort clockOffset ) : void
DoInquiryScan ( int timeoutSeconds ) : List
GetRemoteName ( InquiryResult device ) : string
Open ( ) : void
Reset ( ) : void
SendACLData ( byte buffer, int offset, int count ) : void
SendPINCodeReply ( ulong bdAddr, string pin ) : void
SetDeviceClass ( uint deviceClass ) : void
SetDiscoverableMode ( bool discoverable ) : void
SetLocalName ( string name ) : void
USBBluetoothAdapter ( ushort vendorId, ushort productId ) : System

Private Methods

Method Description
_SendHCICommand ( Opcode command ) : void
_SendHCICommand ( Opcode command, bool returnImmediately ) : void
_SendHCICommand ( Opcode command, byte parameterData ) : void
_SendHCICommand ( Opcode command, byte parameterData, bool returnImmediately ) : void
_WaitForCompletion ( Opcode command ) : void
_isoReader_DataReceived ( object sender, EndpointDataEventArgs e ) : void
hci_DataReceived ( object sender, EndpointDataEventArgs e ) : void
reader_DataReceived ( object sender, EndpointDataEventArgs e ) : void

Method Details

AcceptConnectionRequest() public method

public AcceptConnectionRequest ( ulong bdAddr, byte role ) : void
bdAddr ulong
role byte
return void

Close() public method

public Close ( ) : void
return void

Connect() public method

public Connect ( InquiryResult result ) : void
result InquiryResult
return void

Connect() public method

public Connect ( ulong bdAddr, byte pageScanRepetitionMode, ushort clockOffset ) : void
bdAddr ulong
pageScanRepetitionMode byte
clockOffset ushort
return void

DoInquiryScan() public method

public DoInquiryScan ( int timeoutSeconds ) : List
timeoutSeconds int
return List

GetRemoteName() public method

public GetRemoteName ( InquiryResult device ) : string
device InquiryResult
return string

Open() public method

public Open ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

SendACLData() public method

public SendACLData ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

SendPINCodeReply() public method

public SendPINCodeReply ( ulong bdAddr, string pin ) : void
bdAddr ulong
pin string
return void

SetDeviceClass() public method

public SetDeviceClass ( uint deviceClass ) : void
deviceClass uint
return void

SetDiscoverableMode() public method

public SetDiscoverableMode ( bool discoverable ) : void
discoverable bool
return void

SetLocalName() public method

public SetLocalName ( string name ) : void
name string
return void

USBBluetoothAdapter() public method

public USBBluetoothAdapter ( ushort vendorId, ushort productId ) : System
vendorId ushort
productId ushort
return System