EIE4-FYP/demo/can

28 lines
368 B
Plaintext
Raw Permalink Normal View History

#include <generated/csr.h>
#include <stdint.h>
#pragma once
// Struct Definition
struct can_frame {
uint16_t id;
uint8_t data[8];
};
// Function Declarations
uint32_t can_id_read(void);
void can_id_write(uint32_t value);
uint32_t can_mask_read(void);
void can_mask_write(uint32_t value);
can_frame can_read(void);
2023-06-10 13:07:36 +00:00
void can_isr(void);
void can_init(void);