|
VLCB
|
Set up functions for the Pico CAN Bus board. More...
#include <PicoCANBus.h>
Public Member Functions | |
| PicoCANBus ()=delete | |
| bool | begin () |
| Prepare the board and CAN controller for operation. | |
| CanTransport * | getCanTransport () |
| Get the underlying CAN object. | |
| CAN2515 * | getCAN2515 () |
| Get the underlying CAN2515 object. | |
| bool | hasCanErrors () |
Static Public Member Functions | |
| static byte | getGreenLedPin () |
| static byte | getYellowLedPin () |
| static byte | getSwitchPin () |
| static void | setupLEDUserInterface (VLCB::LEDUserInterface &ledUserInterface) |
| Setup LED and switch pins for the LEDUserInterface object. | |
Public Attributes | |
| CAN2515 | can2515 |
| The underlying CAN2515 transport object. | |
Set up functions for the Pico CAN Bus board.
RPi Pico CAN Bus board created by Duncan Greenwood to provide CBUS connection for a RPi Pico. It contains an on-obard MCP2515 CAN controller and CBUS LEDs and push button. This class contains functions for setting up SPI pins, oscillator frequency, CBUS LEDs and pushbutton pins.
This board has:
|
delete |
|
static |
|
static |
|
static |
|
static |
Setup LED and switch pins for the LEDUserInterface object.
| bool VLCB::PicoCANBus::begin | ( | ) |
Prepare the board and CAN controller for operation.
|
inline |
Get the underlying CAN object.
| bool VLCB::PicoCANBus::hasCanErrors | ( | ) |