communication

package
v0.0.0-...-a6ce1d2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: GPL-2.0 Imports: 11 Imported by: 2

Documentation

Overview

Package communication - a system to work with the serial bus

Index

Constants

This section is empty.

Variables

View Source
var NoSerial bool

NoSerial says if Serial is disabled

Sender is the command sender

Functions

This section is empty.

Types

type Message

type Message []byte

Message object

type Serial

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

Serial bus

var Bus *Serial

Bus is the main serial Bus

func SetupSerial

func SetupSerial(port string) *Serial

SetupSerial sets up a CAN bus

func (*Serial) AsSender

func (c *Serial) AsSender() commander.Sender

AsSender returns a command sender for this CAN bus

func (*Serial) SendMessage

func (c *Serial) SendMessage(m Message)

SendMessage sends a message

Jump to

Keyboard shortcuts

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