RCOM PROJ
File transfer via serial port
|
#include "logs.h"
Macros | |
#define | _POSIX_C_SOURCE 199309L |
Functions | |
void | log_error (char *arr) |
Outputs a message in red. More... | |
void | log_caution (char *arr) |
Outputs a message in yellow. More... | |
void | log_success (char *arr) |
Outputs a message in green. More... | |
void | log_message (char *arr) |
Outputs a message in white. More... | |
void | log_message_number (char *arr, int numb) |
Outputs a message in the form "number - message". More... | |
void | log_hexa (unsigned char a) |
Outputs a message in the form "Content: 0xHH". More... | |
void | clearProgressBar () |
Clears progress bar from terminal. More... | |
void | printProgressBar (int progress, int total) |
Prints progress bar on terminal. More... | |
void | startTime (struct timespec *start_time) |
starts counting time More... | |
void | log_elapsedTime (char *message, struct timespec start_time) |
starts counting time More... | |
void | log_bitsPerSecond (double nbytes, struct timespec start_time) |