gatt: github.com/bettercap/gatt/linux/evt Index | Files

package evt

import "github.com/bettercap/gatt/linux/evt"

Index

Package Files

evt.go

Constants

const (
    InquiryComplete                              = 0x01 // Inquiry Complete
    InquiryResult                                = 0x02 // Inquiry Result
    ConnectionComplete                           = 0x03 // Connection Complete
    ConnectionRequest                            = 0x04 // Connection Request
    DisconnectionComplete                        = 0x05 // Disconnection Complete
    AuthenticationComplete                       = 0x06 // Authentication
    RemoteNameReqComplete                        = 0x07 // Remote Name Request Complete
    EncryptionChange                             = 0x08 // Encryption Change
    ChangeConnectionLinkKeyComplete              = 0x09 // Change Conection Link Key Complete
    MasterLinkKeyComplete                        = 0x0A // Master Link Keye Complete
    ReadRemoteSupportedFeaturesComplete          = 0x0B // Read Remote Supported Features Complete
    ReadRemoteVersionInformationComplete         = 0x0C // Read Remote Version Information Complete
    QoSSetupComplete                             = 0x0D // QoSSetupComplete
    CommandComplete                              = 0x0E // Command Complete
    CommandStatus                                = 0x0F // Command status
    HardwareError                                = 0x10 // Hardware Error
    FlushOccurred                                = 0x11 // Flush Occured
    RoleChange                                   = 0x12 // Role Change
    NumberOfCompletedPkts                        = 0x13 // Number Of Completed Packets
    ModeChange                                   = 0x14 // Mode Change
    ReturnLinkKeys                               = 0x15 // Return Link Keys
    PinCodeRequest                               = 0x16 // PIN Code Request
    LinkKeyRequest                               = 0x17 // Link Key Request
    LinkKeyNotification                          = 0x18 // Link Key Notification
    LoopbackCommand                              = 0x19 // Loopback Command
    DataBufferOverflow                           = 0x1A // Data Buffer Overflow
    MaxSlotsChange                               = 0x1B // Max Slots Change
    ReadClockOffsetComplete                      = 0x1C // Read Clock Offset Complete
    ConnectionPtypeChanged                       = 0x1D // Connection Packet Type Changed
    QoSViolation                                 = 0x1E // QoS Violation
    PageScanRepetitionModeChange                 = 0x20 // Page Scan Repetition Mode Change
    FlowSpecificationComplete                    = 0x21 // Flow Specification
    InquiryResultWithRssi                        = 0x22 // Inquery Result with RSSI
    ReadRemoteExtendedFeaturesComplete           = 0x23 // Read Remote Extended Features Complete
    SyncConnectionComplete                       = 0x2C // Synchronous Connection Complete
    SyncConnectionChanged                        = 0x2D // Synchronous Connection Changed
    SniffSubrating                               = 0x2E // Sniff Subrating
    ExtendedInquiryResult                        = 0x2F // Extended Inquiry Result
    EncryptionKeyRefreshComplete                 = 0x30 // Encryption Key Refresh Complete
    IOCapabilityRequest                          = 0x31 // IO Capability Request
    IOCapabilityResponse                         = 0x32 // IO Capability Changed
    UserConfirmationRequest                      = 0x33 // User Confirmation Request
    UserPasskeyRequest                           = 0x34 // User Passkey Request
    RemoteOOBDataRequest                         = 0x35 // Remote OOB Data
    SimplePairingComplete                        = 0x36 // Simple Pairing Complete
    LinkSupervisionTimeoutChanged                = 0x38 // Link Supervision Timeout Changed
    EnhancedFlushComplete                        = 0x39 // Enhanced Flush Complete
    UserPasskeyNotify                            = 0x3B // User Passkey Notification
    KeypressNotify                               = 0x3C // Keypass Notification
    RemoteHostFeaturesNotify                     = 0x3D // Remote Host Supported Features Notification
    LEMeta                                       = 0x3E // LE Meta
    PhysicalLinkComplete                         = 0x40 // Physical Link Complete
    ChannelSelected                              = 0x41 // Channel Selected
    DisconnectionPhysicalLinkComplete            = 0x42 // Disconnection Physical Link Complete
    PhysicalLinkLossEarlyWarning                 = 0x43 // Physical Link Loss Early Warning
    PhysicalLinkRecovery                         = 0x44 // Physical Link Recovery
    LogicalLinkComplete                          = 0x45 // Logical Link Complete
    DisconnectionLogicalLinkComplete             = 0x46 // Disconnection Logical Link Complete
    FlowSpecModifyComplete                       = 0x47 // Flow Spec Modify Complete
    NumberOfCompletedBlocks                      = 0x48 // Number Of Completed Data Blocks
    AMPStartTest                                 = 0x49 // AMP Start Test
    AMPTestEnd                                   = 0x4A // AMP Test End
    AMPReceiverReport                            = 0x4b // AMP Receiver Report
    AMPStatusChange                              = 0x4D // AMP status Change
    TriggeredClockCapture                        = 0x4e // Triggered Clock Capture
    SynchronizationTrainComplete                 = 0x4F // Synchronization Train Complete
    SynchronizationTrainReceived                 = 0x50 // Synchronization Train Received
    ConnectionlessSlaveBroadcastReceive          = 0x51 // Connectionless Slave Broadcast Receive
    ConnectionlessSlaveBroadcastTimeout          = 0x52 // Connectionless Slave Broadcast Timeout
    TruncatedPageComplete                        = 0x53 // Truncated Page Complete
    SlavePageResponseTimeout                     = 0x54 // Slave Page Response Timeout
    ConnectionlessSlaveBroadcastChannelMapChange = 0x55 // Connectionless Slave Broadcast Channel Map Change
    InquiryResponseNotification                  = 0x56 // Inquiry Response Notification
    AuthenticatedPayloadTimeoutExpired           = 0x57 // Authenticated Payload Timeout Expired
)
const (
    LEConnectionComplete               LEEventCode = 0x01 // LE Connection Complete
    LEAdvertisingReport                            = 0x02 // LE Advertising Report
    LEConnectionUpdateComplete                     = 0x03 // LE Connection Update Complete
    LEReadRemoteUsedFeaturesComplete               = 0x04 // LE Read Remote Used Features Complete
    LELTKRequest                                   = 0x05 // LE LTK Request
    LERemoteConnectionParameterRequest             = 0x06 // LE Remote Connection Parameter Request
)

type CommandCompleteEP Uses

type CommandCompleteEP struct {
    NumHCICommandPackets uint8
    CommandOPCode        uint16
    ReturnParameters     []byte
}

func (*CommandCompleteEP) Unmarshal Uses

func (e *CommandCompleteEP) Unmarshal(b []byte) error

type CommandStatusEP Uses

type CommandStatusEP struct {
    Status               uint8
    NumHCICommandPackets uint8
    CommandOpcode        uint16
}

func (*CommandStatusEP) Unmarshal Uses

func (e *CommandStatusEP) Unmarshal(b []byte) error

type ConnectionCompleteEP Uses

type ConnectionCompleteEP struct {
    Status            uint8
    ConnectionHandle  uint16
    BDAddr            [6]byte
    LinkType          uint8
    EncryptionEnabled uint8
}

type ConnectionRequestEP Uses

type ConnectionRequestEP struct {
    BDAddr        [6]byte
    ClassofDevice [3]byte
    LinkType      uint8
}

type DisconnectionCompleteEP Uses

type DisconnectionCompleteEP struct {
    Status           uint8
    ConnectionHandle uint16
    Reason           uint8
}

func (*DisconnectionCompleteEP) Unmarshal Uses

func (e *DisconnectionCompleteEP) Unmarshal(b []byte) error

type EventHandler Uses

type EventHandler interface {
    HandleEvent([]byte) error
}

type EventHeader Uses

type EventHeader struct {
    // contains filtered or unexported fields
}

func (*EventHeader) Unmarshal Uses

func (h *EventHeader) Unmarshal(b []byte) error

type Evt Uses

type Evt struct {
    // contains filtered or unexported fields
}

func NewEvt Uses

func NewEvt() *Evt

func (*Evt) Dispatch Uses

func (e *Evt) Dispatch(b []byte) error

func (*Evt) HandleEvent Uses

func (e *Evt) HandleEvent(c int, h EventHandler)

type HandlerFunc Uses

type HandlerFunc func(b []byte) error

func (HandlerFunc) HandleEvent Uses

func (f HandlerFunc) HandleEvent(b []byte) error

type InquiryCompleteEP Uses

type InquiryCompleteEP struct {
    Status uint8
}

type InquiryResultEP Uses

type InquiryResultEP struct {
    NumResponses           uint8
    BDAddr                 [][6]byte
    PageScanRepetitionMode []uint8
    Reserved1              []byte
    Reserved2              []byte
    ClassOfDevice          [][3]byte
    ClockOffset            []uint16
}

type LEAdvertisingReportEP Uses

type LEAdvertisingReportEP struct {
    SubeventCode uint8
    NumReports   uint8
    EventType    []uint8
    AddressType  []uint8
    Address      [][6]byte
    Length       []uint8
    Data         [][]byte
    RSSI         []int8
}

func (*LEAdvertisingReportEP) Unmarshal Uses

func (e *LEAdvertisingReportEP) Unmarshal(b []byte) error

type LEConnectionCompleteEP Uses

type LEConnectionCompleteEP struct {
    SubeventCode        uint8
    Status              uint8
    ConnectionHandle    uint16
    Role                uint8
    PeerAddressType     uint8
    PeerAddress         [6]byte
    ConnInterval        uint16
    ConnLatency         uint16
    SupervisionTimeout  uint16
    MasterClockAccuracy uint8
}

LE Meta Subevents

func (*LEConnectionCompleteEP) Unmarshal Uses

func (e *LEConnectionCompleteEP) Unmarshal(b []byte) error

type LEConnectionUpdateCompleteEP Uses

type LEConnectionUpdateCompleteEP struct {
    SubeventCode       uint8
    Status             uint8
    ConnectionHandle   uint16
    ConnInterval       uint16
    ConnLatency        uint16
    SupervisionTimeout uint16
}

func (*LEConnectionUpdateCompleteEP) Unmarshal Uses

func (e *LEConnectionUpdateCompleteEP) Unmarshal(b []byte) error

type LEEventCode Uses

type LEEventCode int

type LELTKRequestEP Uses

type LELTKRequestEP struct {
    SubeventCode          uint8
    ConnectionHandle      uint16
    RandomNumber          uint64
    EncryptionDiversifier uint16
}

func (*LELTKRequestEP) Unmarshal Uses

func (e *LELTKRequestEP) Unmarshal(b []byte) error

type LEReadRemoteUsedFeaturesCompleteEP Uses

type LEReadRemoteUsedFeaturesCompleteEP struct {
    SubeventCode     uint8
    Status           uint8
    ConnectionHandle uint16
    LEFeatures       uint64
}

func (*LEReadRemoteUsedFeaturesCompleteEP) Unmarshal Uses

func (e *LEReadRemoteUsedFeaturesCompleteEP) Unmarshal(b []byte) error

type LERemoteConnectionParameterRequestEP Uses

type LERemoteConnectionParameterRequestEP struct {
    SubeventCode     uint8
    ConnectionHandle uint16
    IntervalMin      uint16
    IntervalMax      uint16
    Latency          uint16
    Timeout          uint16
}

func (*LERemoteConnectionParameterRequestEP) Unmarshal Uses

func (e *LERemoteConnectionParameterRequestEP) Unmarshal(b []byte) error

type NumOfCompletedPkt Uses

type NumOfCompletedPkt struct {
    ConnectionHandle   uint16
    NumOfCompletedPkts uint16
}

type NumberOfCompletedPktsEP Uses

type NumberOfCompletedPktsEP struct {
    NumberOfHandles uint8
    Packets         []NumOfCompletedPkt
}

func (*NumberOfCompletedPktsEP) Unmarshal Uses

func (e *NumberOfCompletedPktsEP) Unmarshal(b []byte) error

Package evt imports 5 packages (graph) and is imported by 4 packages. Updated 2018-02-27. Refresh now. Tools for package owners. This is a quick bug-fix fork (has fewer than three commits, and only during the week it was created).