Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
logging.cpp File Reference
#include "logging.h"
#include <iostream>
#include <string>
Include dependency graph for logging.cpp:

Go to the source code of this file.

Functions

void getTimeStamp (LogEntry *logEntry)
 

Variables

LogEntry globalLogEntry
 
LogEntryentry = &globalLogEntry
 
FlexCAN_T4< CAN1, RX_SIZE_256, TX_SIZE_16 > can1
 
File myFile_setup
 
File myFile
 
constexpr size_t CANBUFSIZE = 100
 
LogEntry lbuf [CANBUFSIZE]
 
volatile unsigned int lbuf_head = 0
 
volatile unsigned int lbuf_tail = 0
 
int t = 0
 
char file [16] = "Test1.csv"
 
int count = 1
 
int count2 = 1
 

Function Documentation

◆ getTimeStamp()

void getTimeStamp ( LogEntry logEntry)

Definition at line 24 of file logging.cpp.

Variable Documentation

◆ can1

FlexCAN_T4<CAN1, RX_SIZE_256, TX_SIZE_16> can1
extern

Definition at line 87 of file main.cpp.

◆ CANBUFSIZE

constexpr size_t CANBUFSIZE = 100
constexpr

Definition at line 13 of file logging.cpp.

◆ count

int count = 1

Definition at line 21 of file logging.cpp.

◆ count2

int count2 = 1

Definition at line 22 of file logging.cpp.

◆ entry

Definition at line 6 of file logging.cpp.

◆ file

char file[16] = "Test1.csv"

Definition at line 19 of file logging.cpp.

◆ globalLogEntry

LogEntry globalLogEntry

Definition at line 5 of file logging.cpp.

◆ lbuf

Definition at line 14 of file logging.cpp.

◆ lbuf_head

volatile unsigned int lbuf_head = 0

Definition at line 15 of file logging.cpp.

◆ lbuf_tail

volatile unsigned int lbuf_tail = 0

Definition at line 16 of file logging.cpp.

◆ myFile

File myFile

Definition at line 10 of file logging.cpp.

◆ myFile_setup

File myFile_setup

Definition at line 9 of file logging.cpp.

◆ t

int t = 0

Definition at line 17 of file logging.cpp.