37 #define TMAX_FILENAME_LEN (255)
ER ev3_memfile_free(memfile_t *p_memfile)
Free the resource (memory) allocated to a memory file.
Definition: ev3api_fs.c:81
bool_t is_dir
Flag of a folder.
Definition: ev3api_fs.h:50
uint16_t time
Last modified time.
Definition: ev3api_fs.h:49
uint32_t filesz
Actual size of this file.
Definition: ev3api_fs.h:33
bool_t is_hidden
Flag of hidden.
Definition: ev3api_fs.h:52
Default serial port (port for log task)
Definition: ev3api_fs.h:181
Structure of file information.
Definition: ev3api_fs.h:46
uint32_t size
File size.
Definition: ev3api_fs.h:47
uint16_t date
Last modified date.
Definition: ev3api_fs.h:48
serial_port_t
Numbers representing serial ports.
Definition: ev3api_fs.h:180
ER ev3_sdcard_readdir(ID dirid, fileinfo_t *p_fileinfo)
Read file information in the directory.
Definition: ev3api_fs.c:129
ER_ID ev3_sdcard_opendir(const char *path)
Open a directory for reading.
Definition: ev3api_fs.c:124
A memory file is a file stored in RAM rather than on the SD card.
Definition: ev3api_fs.h:31
ER ev3_memfile_load(const char *path, memfile_t *p_memfile)
Create a memory file and load a specific file into it from the SD card.
Definition: ev3api_fs.c:14
ER ev3_sdcard_closedir(ID dirid)
Close a directory.
Definition: ev3api_fs.c:148
bool_t ev3_bluetooth_is_connected()
It is checked whether Bluetooth (Serial Port Profile) is connected.
Definition: ev3api_fs.c:152
uint32_t buffersz
Maximum size of the buffer to store this file.
Definition: ev3api_fs.h:34
bool_t is_readonly
Flag of read-only.
Definition: ev3api_fs.h:51
Bluetooth SPP.
Definition: ev3api_fs.h:183
UART (Sensor port 1)
Definition: ev3api_fs.h:182
#define TMAX_FILENAME_LEN
Maximum length of a file name.
Definition: ev3api_fs.h:37
void * buffer
Pointer of the buffer where this file is stored. NULL means a invalid memory file.
Definition: ev3api_fs.h:32
FILE * ev3_serial_open_file(serial_port_t port)
Open the serial port as a file.
Definition: ev3api_fs.c:97