canfd2 2.0.0.0

Topics

 MikroBUS
 
 Error Code
 
 Driver define
 
 Control Registers
 
 Selective Wake Registers
 
 Status Registers
 
 Selective Wake Status Registers
 
 Mode Control Commands
 
 Hardware Control Commands
 
 TXD Timeout Control Commands
 
 Supply Control Commands
 
 Selective Wake Control Commands
 
 Identifier 3 Control Commands
 
 Data Length Code Control Commands
 
 Transceiver Status Commands
 
 Transceiver Undervoltage Status Commands
 
 Error Status Commands
 
 Wake Status Commands
 
 Selective Wake Status Commands
 
 Select Operation Mode
 
 Types
 
 Public function
 

Macros

#define CANFD2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define CANFD2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.

Macro Definition Documentation

◆ CANFD2_SET_DATA_SAMPLE_EDGE

#define CANFD2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with canfd2_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ CANFD2_SET_DATA_SAMPLE_MIDDLE

#define CANFD2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE