mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-09-10 16:49:32 +00:00
add support extended id for mcp2515 (#857)
* add support extended id for mcp2515 * fix mcp2512 example code * revert Pin control
This commit is contained in:
@@ -417,4 +417,11 @@ const (
|
||||
canFail = 0xff
|
||||
|
||||
canMaxCharInMessage = 8
|
||||
|
||||
// for extended id
|
||||
extidTop11WriteMask = 0x1FFC0000
|
||||
extidBottom29Mask = (1 << 29) - 1 // extended id bits
|
||||
extidBottom18Mask = (1 << 18) - 1 // bottom 18 bits
|
||||
stdidBottom11Mask = 0x7FF
|
||||
extidFlagMask = 1 << 19
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user