genericattributeprofile

package
v0.0.0-...-ae6dbc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const GUIDiGattCharacteristic string = "59cb50c1-5934-4f68-a198-eb864fa44e6b"
View Source
const GUIDiGattCharacteristic2 string = "ae1ab578-ec06-4764-b780-9835a1d35d6e"
View Source
const GUIDiGattCharacteristic3 string = "3f3c663e-93d4-406b-b817-db81f8ed53b3"
View Source
const GUIDiGattCharacteristicsResult string = "1194945c-b257-4f3e-9db7-f68bc9a9aef2"
View Source
const GUIDiGattDeviceService string = "ac7b7c05-b33c-47cf-990f-6b8f5577df71"
View Source
const GUIDiGattDeviceService2 string = "fc54520b-0b0d-4708-bae0-9ffd9489bc59"
View Source
const GUIDiGattDeviceService3 string = "b293a950-0c53-437c-a9b3-5c3210c6e569"
View Source
const GUIDiGattDeviceServicesResult string = "171dd3ee-016d-419d-838a-576cf475a3d8"
View Source
const GUIDiGattReadResult string = "63a66f08-1aea-4c4c-a50f-97bae474b348"
View Source
const GUIDiGattReadResult2 string = "a10f50a0-fb43-48af-baaa-638a5c6329fe"
View Source
const GUIDiGattSession string = "d23b5143-e04e-4c24-999c-9c256f9856b1"
View Source
const GUIDiGattSessionStatics string = "2e65b95c-539f-4db7-82a8-73bdbbf73ebf"
View Source
const GUIDiGattValueChangedEventArgs string = "d21bdb54-06e3-4ed8-a263-acfac8ba7313"
View Source
const SignatureGattCharacteristic string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic;{59cb50c1-5934-4f68-a198-eb864fa44e6b})"
View Source
const SignatureGattCharacteristicProperties string = "enum(Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristicProperties;u4)"
View Source
const SignatureGattCharacteristicsResult string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristicsResult;{1194945c-b257-4f3e-9db7-f68bc9a9aef2})"
View Source
const SignatureGattClientCharacteristicConfigurationDescriptorValue string = "enum(Windows.Devices.Bluetooth.GenericAttributeProfile.GattClientCharacteristicConfigurationDescriptorValue;i4)"
View Source
const SignatureGattCommunicationStatus string = "enum(Windows.Devices.Bluetooth.GenericAttributeProfile.GattCommunicationStatus;i4)"
View Source
const SignatureGattDeviceService string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceService;{ac7b7c05-b33c-47cf-990f-6b8f5577df71})"
View Source
const SignatureGattDeviceServicesResult string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceServicesResult;{171dd3ee-016d-419d-838a-576cf475a3d8})"
View Source
const SignatureGattReadResult string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadResult;{63a66f08-1aea-4c4c-a50f-97bae474b348})"
View Source
const SignatureGattSession string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattSession;{d23b5143-e04e-4c24-999c-9c256f9856b1})"
View Source
const SignatureGattValueChangedEventArgs string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattValueChangedEventArgs;{d21bdb54-06e3-4ed8-a263-acfac8ba7313})"
View Source
const SignatureGattWriteOption string = "enum(Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteOption;i4)"
View Source
const SignatureiGattCharacteristic string = "{59cb50c1-5934-4f68-a198-eb864fa44e6b}"
View Source
const SignatureiGattCharacteristic2 string = "{ae1ab578-ec06-4764-b780-9835a1d35d6e}"
View Source
const SignatureiGattCharacteristic3 string = "{3f3c663e-93d4-406b-b817-db81f8ed53b3}"
View Source
const SignatureiGattCharacteristicsResult string = "{1194945c-b257-4f3e-9db7-f68bc9a9aef2}"
View Source
const SignatureiGattDeviceService string = "{ac7b7c05-b33c-47cf-990f-6b8f5577df71}"
View Source
const SignatureiGattDeviceService2 string = "{fc54520b-0b0d-4708-bae0-9ffd9489bc59}"
View Source
const SignatureiGattDeviceService3 string = "{b293a950-0c53-437c-a9b3-5c3210c6e569}"
View Source
const SignatureiGattDeviceServicesResult string = "{171dd3ee-016d-419d-838a-576cf475a3d8}"
View Source
const SignatureiGattReadResult string = "{63a66f08-1aea-4c4c-a50f-97bae474b348}"
View Source
const SignatureiGattReadResult2 string = "{a10f50a0-fb43-48af-baaa-638a5c6329fe}"
View Source
const SignatureiGattSession string = "{d23b5143-e04e-4c24-999c-9c256f9856b1}"
View Source
const SignatureiGattSessionStatics string = "{2e65b95c-539f-4db7-82a8-73bdbbf73ebf}"
View Source
const SignatureiGattValueChangedEventArgs string = "{d21bdb54-06e3-4ed8-a263-acfac8ba7313}"

Variables

This section is empty.

Functions

func FromDeviceIdAsync

func FromDeviceIdAsync(deviceId *bluetooth.BluetoothDeviceId) (*foundation.IAsyncOperation, error)

Types

type GattCharacteristic

type GattCharacteristic struct {
	ole.IUnknown
}

func (*GattCharacteristic) AddValueChanged

func (impl *GattCharacteristic) AddValueChanged(valueChangedHandler *foundation.TypedEventHandler) (foundation.EventRegistrationToken, error)

func (*GattCharacteristic) GetCharacteristicProperties

func (impl *GattCharacteristic) GetCharacteristicProperties() (GattCharacteristicProperties, error)

func (*GattCharacteristic) GetUuid

func (impl *GattCharacteristic) GetUuid() (syscall.GUID, error)

func (*GattCharacteristic) ReadValueAsync

func (impl *GattCharacteristic) ReadValueAsync() (*foundation.IAsyncOperation, error)

func (*GattCharacteristic) ReadValueWithCacheModeAsync

func (impl *GattCharacteristic) ReadValueWithCacheModeAsync(cacheMode bluetooth.BluetoothCacheMode) (*foundation.IAsyncOperation, error)

func (*GattCharacteristic) RemoveValueChanged

func (impl *GattCharacteristic) RemoveValueChanged(valueChangedEventCookie foundation.EventRegistrationToken) error

func (*GattCharacteristic) WriteClientCharacteristicConfigurationDescriptorAsync

func (impl *GattCharacteristic) WriteClientCharacteristicConfigurationDescriptorAsync(clientCharacteristicConfigurationDescriptorValue GattClientCharacteristicConfigurationDescriptorValue) (*foundation.IAsyncOperation, error)

func (*GattCharacteristic) WriteValueAsync

func (impl *GattCharacteristic) WriteValueAsync(value *streams.IBuffer) (*foundation.IAsyncOperation, error)

func (*GattCharacteristic) WriteValueWithOptionAsync

func (impl *GattCharacteristic) WriteValueWithOptionAsync(value *streams.IBuffer, writeOption GattWriteOption) (*foundation.IAsyncOperation, error)

type GattCharacteristicProperties

type GattCharacteristicProperties uint32
const (
	GattCharacteristicPropertiesNone                      GattCharacteristicProperties = 0
	GattCharacteristicPropertiesBroadcast                 GattCharacteristicProperties = 1
	GattCharacteristicPropertiesRead                      GattCharacteristicProperties = 2
	GattCharacteristicPropertiesWriteWithoutResponse      GattCharacteristicProperties = 4
	GattCharacteristicPropertiesWrite                     GattCharacteristicProperties = 8
	GattCharacteristicPropertiesNotify                    GattCharacteristicProperties = 16
	GattCharacteristicPropertiesIndicate                  GattCharacteristicProperties = 32
	GattCharacteristicPropertiesAuthenticatedSignedWrites GattCharacteristicProperties = 64
	GattCharacteristicPropertiesExtendedProperties        GattCharacteristicProperties = 128
	GattCharacteristicPropertiesReliableWrites            GattCharacteristicProperties = 256
	GattCharacteristicPropertiesWritableAuxiliaries       GattCharacteristicProperties = 512
)

type GattCharacteristicsResult

type GattCharacteristicsResult struct {
	ole.IUnknown
}

func (*GattCharacteristicsResult) GetCharacteristics

func (impl *GattCharacteristicsResult) GetCharacteristics() (*collections.IVectorView, error)

func (*GattCharacteristicsResult) GetStatus

type GattClientCharacteristicConfigurationDescriptorValue

type GattClientCharacteristicConfigurationDescriptorValue int32
const (
	GattClientCharacteristicConfigurationDescriptorValueNone     GattClientCharacteristicConfigurationDescriptorValue = 0
	GattClientCharacteristicConfigurationDescriptorValueNotify   GattClientCharacteristicConfigurationDescriptorValue = 1
	GattClientCharacteristicConfigurationDescriptorValueIndicate GattClientCharacteristicConfigurationDescriptorValue = 2
)

type GattCommunicationStatus

type GattCommunicationStatus int32
const (
	GattCommunicationStatusSuccess       GattCommunicationStatus = 0
	GattCommunicationStatusUnreachable   GattCommunicationStatus = 1
	GattCommunicationStatusProtocolError GattCommunicationStatus = 2
	GattCommunicationStatusAccessDenied  GattCommunicationStatus = 3
)

type GattDeviceService

type GattDeviceService struct {
	ole.IUnknown
}

func (*GattDeviceService) Close

func (impl *GattDeviceService) Close() error

func (*GattDeviceService) GetCharacteristicsAsync

func (impl *GattDeviceService) GetCharacteristicsAsync() (*foundation.IAsyncOperation, error)

func (*GattDeviceService) GetCharacteristicsWithCacheModeAsync

func (impl *GattDeviceService) GetCharacteristicsWithCacheModeAsync(cacheMode bluetooth.BluetoothCacheMode) (*foundation.IAsyncOperation, error)

func (*GattDeviceService) GetUuid

func (impl *GattDeviceService) GetUuid() (syscall.GUID, error)

type GattDeviceServicesResult

type GattDeviceServicesResult struct {
	ole.IUnknown
}

func (*GattDeviceServicesResult) GetServices

func (impl *GattDeviceServicesResult) GetServices() (*collections.IVectorView, error)

func (*GattDeviceServicesResult) GetStatus

type GattReadResult

type GattReadResult struct {
	ole.IUnknown
}

func (*GattReadResult) GetStatus

func (impl *GattReadResult) GetStatus() (GattCommunicationStatus, error)

func (*GattReadResult) GetValue

func (impl *GattReadResult) GetValue() (*streams.IBuffer, error)

type GattSession

type GattSession struct {
	ole.IUnknown
}

func (*GattSession) AddMaxPduSizeChanged

func (impl *GattSession) AddMaxPduSizeChanged(handler *foundation.TypedEventHandler) (foundation.EventRegistrationToken, error)

func (*GattSession) Close

func (impl *GattSession) Close() error

func (*GattSession) GetCanMaintainConnection

func (impl *GattSession) GetCanMaintainConnection() (bool, error)

func (*GattSession) GetMaintainConnection

func (impl *GattSession) GetMaintainConnection() (bool, error)

func (*GattSession) GetMaxPduSize

func (impl *GattSession) GetMaxPduSize() (uint16, error)

func (*GattSession) RemoveMaxPduSizeChanged

func (impl *GattSession) RemoveMaxPduSizeChanged(token foundation.EventRegistrationToken) error

func (*GattSession) SetMaintainConnection

func (impl *GattSession) SetMaintainConnection(value bool) error

type GattValueChangedEventArgs

type GattValueChangedEventArgs struct {
	ole.IUnknown
}

func (*GattValueChangedEventArgs) GetCharacteristicValue

func (impl *GattValueChangedEventArgs) GetCharacteristicValue() (*streams.IBuffer, error)

func (*GattValueChangedEventArgs) GetTimestamp

func (impl *GattValueChangedEventArgs) GetTimestamp() (foundation.DateTime, error)

type GattWriteOption

type GattWriteOption int32
const (
	GattWriteOptionWriteWithResponse    GattWriteOption = 0
	GattWriteOptionWriteWithoutResponse GattWriteOption = 1
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL