sdutil

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppRAMBase

func AppRAMBase() uintptr

Types

type AdvData

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

func NewAdvData

func NewAdvData(maxLen int) *AdvData

func (*AdvData) AppendBytes

func (d *AdvData) AppendBytes(t gap.AdvDataType, b ...byte)

func (*AdvData) AppendString

func (d *AdvData) AppendString(t gap.AdvDataType, s string)

func (*AdvData) AppendUUIDs

func (d *AdvData) AppendUUIDs(t gap.AdvDataType, size int, uuids ...*ble.UUID)

func (*AdvData) Data

func (d *AdvData) Data() ble.Data

func (*AdvData) Reset

func (d *AdvData) Reset()

type Event

type Event interface {
	EventID() uint16
}

func NextEvent

func NextEvent() (Event, error)

NextEvent returns next available softdevice event. Internally it calls ble.GetEvt twice: first to determine the event size and next to dequeue it. For this reason it cannot be used concurently by multiple gorutines.

Jump to

Keyboard shortcuts

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