transport

package
v0.0.0-...-83a780d Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterfaceType

type InterfaceType byte

MsgType indicates the type of the packet.

const (
	Serial InterfaceType = iota
	BLE
)

type TransportController

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

func NewTransportController

func NewTransportController() *TransportController

func (*TransportController) HandleReceivedData

func (tc *TransportController) HandleReceivedData(data []byte) []frame.Frame

type TransportInterface

type TransportInterface interface {
	Connect(params TransportInterfaceParams) error
	Send(data []byte) error
	Receive(timeoutSeconds int) ([]frame.Frame, error)
	Connected() bool
	Type() InterfaceType
	Close() error
}

type TransportInterfaceParams

type TransportInterfaceParams struct {
	Port      string
	BoundRate int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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