Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History

canard

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

canard

I forked from here.

Changes from the original

  • Communicate with other libraries
    The original supports transmission of 8 bytes or more, but is not compatible with other libraries.
    This example can only transfer up to 8 bytes of data, but can communicate with other libraries.

  • Support STM32F405/407

API

  • Initialize Hardware
    transfer_id = CAN_HW_Init(uint8_t serial);

  • Initialize Library
    void initCanard(uint32_t speed);

  • Send CAN Packet from queue
    void sendCanard(void);

  • Receive CAN Packet
    bool receiveCanard(uint32_t * can_id, uint8_t * payload, uint8_t * payload_size);

  • Push CAN Packet to TX queue
    void queueCanard(uint32_t can_id, uint8_t * payload, uint8_t payload_size);