libyggdrasil  v1.0.0
bsp::asg_coproc::drv::CAN< Context > Struct Template Reference

CAN implementation for Asgard. More...

#include <can.hpp>

Static Public Member Functions

static bool init ()
 Init function. More...
 
static bool deinit ()
 Deinit function. More...
 
static bool enable ()
 Can enable. More...
 
static bool disable ()
 Can disable. More...
 
static void read (u32 &id, u32 &extendedId, u32 &timestamp, std::array< u8, 8 > &data)
 CAN receive. More...
 
template<typename T >
static u32 write (bsp::drv::CANPacket< T > packet)
 CAN write. More...
 

Detailed Description

template<auto Context>
struct bsp::asg_coproc::drv::CAN< Context >

CAN implementation for Asgard.

Warning
Do not use this on its own!
Template Parameters
ContextCAN context

Member Function Documentation

◆ deinit()

template<auto Context>
static bool bsp::asg_coproc::drv::CAN< Context >::deinit ( )
inlinestatic

Deinit function.

Returns
Success

◆ disable()

template<auto Context>
static bool bsp::asg_coproc::drv::CAN< Context >::disable ( )
inlinestatic

Can disable.

◆ enable()

template<auto Context>
static bool bsp::asg_coproc::drv::CAN< Context >::enable ( )
inlinestatic

Can enable.

◆ init()

template<auto Context>
static bool bsp::asg_coproc::drv::CAN< Context >::init ( )
inlinestatic

Init function.

Returns
Success

◆ read()

template<auto Context>
static void bsp::asg_coproc::drv::CAN< Context >::read ( u32 id,
u32 extendedId,
u32 timestamp,
std::array< u8, 8 > &  data 
)
inlinestatic

CAN receive.

Parameters
[out]idCAN ID
[out]extendedIdCAN extended ID
[out]timestampTimestamp
[out]dataReceived data

◆ write()

template<auto Context>
template<typename T >
static u32 bsp::asg_coproc::drv::CAN< Context >::write ( bsp::drv::CANPacket< T >  packet)
inlinestatic

CAN write.

Template Parameters
Ttype to write
Parameters
packetCAN packet to write

The documentation for this struct was generated from the following file: