Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
exFAT specific data logging interface More...
#include <zephyr/device.h>
#include <ff.h>
Go to the source code of this file.
Functions | |
const char * | logger_exfat_filesystem_claim (const struct device *dev, uint8_t **buf, size_t *buf_size, k_timeout_t timeout) |
Claim exFAT filesystem. | |
void | logger_exfat_filesystem_release (const struct device *dev) |
Release filesystem object claimed with logger_exfat_filesystem_claim. | |
int | logger_exfat_file_next (const struct device *dev) |
Stop logging to the current file, create the next file. | |
exFAT specific data logging interface
SPDX-License-Identifier: FSL-1.1-ALv2
int logger_exfat_file_next | ( | const struct device * | dev | ) |
Stop logging to the current file, create the next file.
This function is intended for use when logging at extremely high frequencies, when the file creation overhead is problematic.
dev | exFAT logging device to move to the next file |
0 | on success |
-errno | on failure |
const char * logger_exfat_filesystem_claim | ( | const struct device * | dev, |
uint8_t ** | buf, | ||
size_t * | buf_size, | ||
k_timeout_t | timeout ) |
Claim exFAT filesystem.
dev | exFAT logging device to claim filesystem for |
buf | Block buffer that can be used for reads (Can be NULL if not needed) |
buf_size | Size of the block buffer (Must be non-NULL if buf provided) |
timeout | Duration to wait for filesystem object |
disk | name on success |
NULL | on timeout |
void logger_exfat_filesystem_release | ( | const struct device * | dev | ) |
Release filesystem object claimed with logger_exfat_filesystem_claim.
dev | exFAT logging device to release |