RTEMS CAN/CAN FD Stack
Loading...
Searching...
No Matches
Functions
ctucanfd.h File Reference

This header file contains the implementation of CTU CAN FD controller. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct can_chipctucanfd_initialize (uint32_t addr, rtems_vector_number irq, int ntxbufs, rtems_option irq_option, unsigned long can_clk_rate)
 This function initializes the CTU CAN FD controller.
 

Detailed Description

This header file contains the implementation of CTU CAN FD controller.

Function Documentation

◆ ctucanfd_initialize()

struct can_chip * ctucanfd_initialize ( uint32_t  addr,
rtems_vector_number  irq,
int  ntxbufs,
rtems_option  irq_option,
unsigned long  can_clk_rate 
)

This function initializes the CTU CAN FD controller.

This is an entry point for CTU CAN FD controller initialization. This function allocates generic CAN and CTU CAN FD related structures, sets default values and initializes the resoursec (interrupt handler, semaphore. worker thread).

Parameters
addrCTU CAN FD code base address.
irqInterrupt number
ntxbufsNumber of TX hardware buffers
irq_optionRTEMS_INTERRUPT_SHARED or RTEMS_INTERRUPT_UNIQUE
can_clk_rateCAN clock rate.
Returns
Pointer to CAN chip structure on success, NULL otherwise.