File mock_can.h

FileList > examples > python_api > inc > mock_can.h

Go to the source code of this file

  • #include <stdint.h>

Public Functions

Type Name
void mock_can_disable_fc (int enable)
Disables sending FlowControl frames in the mock CAN driver.
void mock_can_enable_drop (int enable)
Enables or disables frame dropping in the mock CAN driver.
void mock_can_init (void)
Initializes the mock CAN driver and sets it as the active driver.
void mock_can_set_delay_ms (int delay)
Sets the artificial delay for the mock CAN driver.

Public Functions Documentation

function mock_can_disable_fc

Disables sending FlowControl frames in the mock CAN driver.

void mock_can_disable_fc (
    int enable
) 

Parameters:

  • enable - 1 to disable FlowControl frames, 0 to allow them.

function mock_can_enable_drop

Enables or disables frame dropping in the mock CAN driver.

void mock_can_enable_drop (
    int enable
) 

Parameters:

  • enable - 1 to enable frame dropping, 0 to disable.

function mock_can_init

Initializes the mock CAN driver and sets it as the active driver.

void mock_can_init (
    void
) 


function mock_can_set_delay_ms

Sets the artificial delay for the mock CAN driver.

void mock_can_set_delay_ms (
    int delay
) 

Parameters:

  • delay - Delay in milliseconds.


The documentation for this class was generated from the following file examples/python_api/inc/mock_can.h