Files @ a11c21f8113e
Branch filter:

Location: seniordesign-firmware/master/master/lib/logger.h

ethanzonca@CL-ENS241-08.cedarville.edu
Reworked network scanning to avoid treating the logger as a normal node. System now properly operates with no logger node attached.
/*
 * Master Firmware: Status and Error LED Handler
 *
 * Wireless Observational Modular Aerial Network
 * 
 * Ethan Zonca
 * Matthew Kanning
 * Kyle Ripperger
 * Matthew Kroening
 *
 */


#ifndef LOGGER_H_
#define LOGGER_H_

#include <stdbool.h>

void logger_setup();
uint8_t logger_writeLine(char* dateLine, uint8_t length);
struct fat_file_struct* open_file_in_dir(struct fat_fs_struct* fs, struct fat_dir_struct* dd, const char* name);
uint8_t find_file_in_dir(struct fat_fs_struct* fs, struct fat_dir_struct* dd, const char* name, struct fat_dir_entry_struct* dir_entry);
void error_log(uint8_t errNo, bool flashLED);
void error_log_msg(uint8_t errNo, bool flashLED, char* infoText);
void error_log_rawwrite(char *buffer);
void logger_log(char *buffer);
void logger_closeLog();

#endif /* LOGGER_H_ */