hugllc / samc21_can Goto Github PK
View Code? Open in Web Editor NEWThis is a library to connect the SAMC21 to a CAN bus.
License: GNU Lesser General Public License v3.0
This is a library to connect the SAMC21 to a CAN bus.
License: GNU Lesser General Public License v3.0
I am looking into a CANbus bootloader and see that one was started a few commits back. What became of this, what issues came up?
Well to keep the api oblivious to ports you could get the pins group from the wiring:
./wiring_digital.c: uint8_t pinPort = GetPort(ulPin);
Or keep the API the same, but either way you would have to convert the pin's absolute number to its group specific number, like digitalWrite does:
void digitalWrite( uint32_t ulPin, uint32_t ulVal )
{
uint8_t pinPort = GetPort(ulPin);
uint8_t pinNum = GetPin(ulPin);
Thanks again for your efforts.
Originally posted by @naprave in #1 (comment)
Hi, the SAMC21 has 2 CAN ports - will this work with both at the same time?
Shouldn't the call reference buf, and not buffer?
uint32_t id;
uint8_t len;
uint8_t buf[8]; <<===
uint8_t i;
ret = can.readMsgBuf(id, len, buffer); <<===
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.