Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
exfat.h File Reference

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.
 

Detailed Description

exFAT specific data logging interface

Author
Jordan Yates jorda.nosp@m.n@em.nosp@m.beint.nosp@m..com

SPDX-License-Identifier: FSL-1.1-ALv2

Function Documentation

◆ logger_exfat_file_next()

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.

Warning
This function does not operate from the same context as normal logging, so care must be taken that logging is not occurring at the same time to avoid corruption of the current block counter.
Parameters
devexFAT logging device to move to the next file
Return values
0on success
-errnoon failure

◆ logger_exfat_filesystem_claim()

const char * logger_exfat_filesystem_claim ( const struct device * dev,
uint8_t ** buf,
size_t * buf_size,
k_timeout_t timeout )

Claim exFAT filesystem.

Parameters
devexFAT logging device to claim filesystem for
bufBlock buffer that can be used for reads (Can be NULL if not needed)
buf_sizeSize of the block buffer (Must be non-NULL if buf provided)
timeoutDuration to wait for filesystem object
Return values
diskname on success
NULLon timeout

◆ logger_exfat_filesystem_release()

void logger_exfat_filesystem_release ( const struct device * dev)

Release filesystem object claimed with logger_exfat_filesystem_claim.

Parameters
devexFAT logging device to release