mcp2515

package
v0.0.0-...-fb826a1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

MCP2515 Stand-Alone CAN Interface

MCP2515 Stand-Alone CAN Interface

MCP2515 Stand-Alone CAN Interface

MCP2515 Stand-Alone CAN Interface

MCP2515 Stand-Alone CAN Interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMessageLoop

func RunMessageLoop(d *MCP2515, rxChan MsgChan, txChan MsgChan,
	errChan ErrChan)

Types

type ErrChan

type ErrChan chan error

type MCP2515

type MCP2515 struct {
	// Bus to communicate over
	Bus embd.SPIBus
	// contains filtered or unexported fields
}

func New

func New(bus embd.SPIBus) *MCP2515

New creates a new MCP2515 CAN driver

func (*MCP2515) Setup

func (d *MCP2515) Setup(baudRate int) error

type Message

type Message struct {
	Id       uint32
	Extended bool
	Length   uint8
	Data     [8]uint8
	Time     time.Time
}

type MsgChan

type MsgChan chan *Message

Jump to

Keyboard shortcuts

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