image/svg+xml
Brteve's API for EveApps
Version 0.0.1
The reference document for common folder of EveApps project.
 
Loading...
Searching...
No Matches
sdcard.h File Reference

This file contains apis related to sdcard. More...

Go to the source code of this file.

Data Structures

struct  dirent
 
class  sdcard
 
class  Reader
 

Macros

#define VERBOSE   0
 
#define FAT16   0
 
#define FAT32   1
 

Functions

static void dos83 (byte dst[11], const char *ps)
 

Detailed Description

This file contains apis related to sdcard.

Author
Bridgetek
Date
2018

MIT License

Copyright (c) [2019] [Bridgetek Pte Ltd (BRTChip)]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition in file sdcard.h.

Macro Definition Documentation

◆ FAT16

#define FAT16   0

Definition at line 54 of file sdcard.h.

◆ FAT32

#define FAT32   1

Definition at line 55 of file sdcard.h.

◆ VERBOSE

#define VERBOSE   0

Definition at line 34 of file sdcard.h.

Function Documentation

◆ dos83()

static void dos83 ( byte  dst[11],
const char *  ps 
)
static

Definition at line 286 of file sdcard.h.

287{
288 byte i = 0;
289 while (*ps) {
290 if (*ps != '.')
291 dst[i++] = toupper(*ps);
292 else {
293 while (i < 8)
294 dst[i++] = ' ';
295 }
296 ps++;
297 }
298 while (i < 11)
299 dst[i++] = ' ';
300}