MCU
Loading...
Searching...
No Matches
Functions | Variables
MCU_interface_test.h File Reference
#include <Arduino.h>
#include <unity.h>
#include "MCUInterface.h"
Include dependency graph for MCU_interface_test.h:

Go to the source code of this file.

Functions

void test_set_brake_light (void)
 
void test_mcu_circular_buffer (void)
 

Variables

Circular_Buffer< uint8_t,(uint32_t) 16, sizeof(CAN_message_t)> mcu_CAN_buffer
 

Function Documentation

◆ test_mcu_circular_buffer()

void test_mcu_circular_buffer ( void  )

Definition at line 18 of file MCU_interface_test.h.

19{
20
21}

◆ test_set_brake_light()

void test_set_brake_light ( void  )

Definition at line 10 of file MCU_interface_test.h.

11{
12 mcu_interface.set_brake_light(true);
13 TEST_ASSERT_EQUAL(HIGH, digitalRead(7));
14 mcu_interface.set_brake_light(false);
15 TEST_ASSERT_EQUAL(LOW, digitalRead(7));
16}

Variable Documentation

◆ mcu_CAN_buffer

MCUInterface mcu_interface & mcu_CAN_buffer

Definition at line 6 of file MCU_interface_test.h.