#include "fs_com.h"
#include "fat.h"
Go to the source code of this file.
Function Documentation
void reader_txt_beg |
( |
void |
| ) |
|
void reader_txt_close |
( |
void |
| ) |
|
uint16_t reader_txt_get_line |
( |
bool |
b_unicode, |
|
|
FS_STRING |
string, |
|
|
uint16_t |
u16_str_size |
|
) |
| |
- Parameters:
-
b_unicode | true to return a unicode string (UTF16), ASCII otherwise over there |
string | string used to store text line |
u16_str_size | maximum size of string (unit character, 1B for ASCII, 2B for unicode) |
- Returns:
- size of the line (may be < or > at u16_str_size)
-
0, in case of error
//! This routine remove the character '\n' '\r'
//!
Definition at line 145 of file reader_txt.c.
bool reader_txt_jump_line |
( |
uint16_t |
nb_line | ) |
|
- Parameters:
-
nb_line | number of lines to jump |
- Returns:
- false in case of error
Definition at line 259 of file reader_txt.c.
bool reader_txt_new |
( |
const FS_STRING |
sz_name, |
|
|
uint8_t |
u8_txt_format |
|
) |
| |
- Parameters:
-
sz_name | contains the file name (ASCII or UNICODE ) |
u8_txt_format | text format to use (UNI_TYPE_UTF8, UNI_TYPE_UTF16BE, UNI_TYPE_UTF16LE, UNI_TYPE_ASCII) |
- Returns:
- false in case of error, see global value "fs_g_status" for more detail
-
true otherwise
Definition at line 85 of file reader_txt.c.
bool reader_txt_open |
( |
bool |
b_readonly | ) |
|
- Parameters:
-
b_readonly | true to open the text file in read only access |
- Returns:
- false in case of error, see global value "fs_g_status" for more detail
-
true otherwise
Definition at line 68 of file reader_txt.c.
void reader_txt_select_format |
( |
uint8_t |
u8_txt_format | ) |
|
- Parameters:
-
u8_txt_format | text format selected (UNI_TYPE_UTF8, UNI_TYPE_UTF16BE, UNI_TYPE_UTF16LE, UNI_TYPE_ASCII) |
Definition at line 126 of file reader_txt.c.