K-FSW v1.2.1-59-gcaca356
KFSW: modular flight software on Zephyr, for small satellites
Loading...
Searching...
No Matches
can.h File Reference
#include <stdbool.h>
#include <stdint.h>

Data Structures

struct  kfsw_can_info
 
struct  kfsw_can_test_result
 

Macros

#define KFSW_CAN_INTERFACE_NAME_SIZE   10U
 
#define KFSW_CAN_BITRATE_125K   125000U
 
#define KFSW_CAN_BITRATE_250K   250000U
 
#define KFSW_CAN_BITRATE_500K   500000U
 
#define KFSW_CAN_BITRATE_800K   800000U
 
#define KFSW_CAN_BITRATE_1M   1000000U
 

Functions

int kfsw_can_open (void)
 
void kfsw_can_get_info (struct kfsw_can_info *info)
 
bool kfsw_can_bitrate_supported (uint32_t bitrate)
 
int kfsw_can_set_bitrate (uint32_t bitrate)
 
int kfsw_can_test_peer (uint16_t peer, uint32_t timeout_ms, struct kfsw_can_test_result *result)
 

Description

CSP over CAN.

The controller comes from the kfsw,csp-can chosen node, on a board or through SocketCAN on a host.