Documentation ¶
Overview ¶
Package mcp2515 implements a driver for the MCP2515 CAN Controller.
Reference: https://github.com/coryjfowler/MCP_CAN_lib
Package mcp2515 implements a driver for the MCP2515 CAN Controller.
Index ¶
Constants ¶
View Source
const ( Clock16MHz = 1 Clock8MHz = 2 CAN5kBps = 1 CAN10kBps = 2 CAN20kBps = 3 CAN25kBps = 4 CAN31k25Bps = 5 CAN33kBps = 6 CAN40kBps = 7 CAN50kBps = 8 CAN80kBps = 9 CAN83k3Bps = 10 CAN95kBps = 11 CAN100kBps = 12 CAN125kBps = 13 CAN200kBps = 14 CAN250kBps = 15 CAN500kBps = 16 CAN666kBps = 17 CAN1000kBps = 18 CAN47kBps = 19 )
View Source
const DebugEn = 0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device wraps MCP2515 SPI CAN Module.
func (*Device) Configure ¶
func (d *Device) Configure()
Configure sets up the device for communication.
Click to show internal directories.
Click to hide internal directories.