Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
sdlog_linux.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2026 Freek van Tienen <freek.v.tienen@gmail.com>
3 *
4 * This file is part of paparazzi.
5 *
6 * paparazzi is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * paparazzi is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with paparazzi; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
19 */
20
28
29#ifndef SDLOG_LINUX_H
30#define SDLOG_LINUX_H
31
32#include "std.h"
33#include <stddef.h>
34
50
51typedef int8_t FileDes;
52
53extern SdioError sdLogWriteLog(const FileDes fd, const char *fmt, ...)
54__attribute__((format(printf, 2, 3)));
55extern SdioError sdLogWriteRaw(const FileDes fd, const uint8_t *buffer, const size_t len);
56extern SdioError sdLogWriteByte(const FileDes fd, const uint8_t value);
57extern SdioError sdLogFlushLog(const FileDes fd);
58extern SdioError sdLogFlushAllLogs(void);
59extern size_t sdLogGetNbBytesWrittenToStorage(void);
61
62#endif /* SDLOG_LINUX_H */
int8_t FileDes
Definition sdLog.h:128
SdioError
Definition sdLog.h:111
@ SDLOG_NOCARD
Definition sdLog.h:113
@ SDLOG_QUEUEFULL
Definition sdLog.h:118
@ SDLOG_LOGNUM_ERROR
Definition sdLog.h:123
@ SDLOG_FATFS_ERROR
Definition sdLog.h:114
@ SDLOG_FSFULL
Definition sdLog.h:116
@ SDLOG_WAS_LAUNCHED
Definition sdLog.h:124
@ SDLOG_OK
Definition sdLog.h:112
@ SDLOG_FDFULL
Definition sdLog.h:117
@ SDLOG_MEMFULL
Definition sdLog.h:119
@ SDLOG_FATFS_NOENT
Definition sdLog.h:115
@ SDLOG_NOTHREAD
Definition sdLog.h:120
@ SDLOG_INTERNAL_ERROR
Definition sdLog.h:121
@ SDLOG_CANNOT_EXPAND
Definition sdLog.h:122
SdioError sdLogFlushAllLogs(void)
SdioError sdLogWriteByte(const FileDes fd, const uint8_t value)
SdioError sdLogGetStorageStatus(void)
SdioError sdLogWriteRaw(const FileDes fd, const uint8_t *buffer, const size_t len)
size_t sdLogGetNbBytesWrittenToStorage(void)
SdioError sdLogFlushLog(const FileDes fd)
SdioError sdLogWriteLog(const FileDes fd, const char *fmt,...)
int fd
Definition serial.c:26
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
signed char int8_t
Typedef defining 8 bit char type.