Uzewav Global defines and build options.
More...
Go to the source code of this file.
Data Structures |
struct | RIFFheader |
struct | DirectoryTableEntry |
struct | PartitionEntry |
struct | MBR |
struct | BootRecord |
union | SectorData |
struct | File |
| found files More...
|
Defines |
#define | FAT_ATTR_READONLY 0x01 |
#define | FAT_ATTR_HIDDEN 0x02 |
#define | FAT_ATTR_SYSTEM 0x04 |
#define | FAT_ATTR_VOLUME 0x08 |
#define | FAT_ATTR_DIRECTORY 0x10 |
#define | FAT_ATTR_ARCHIVE 0x20 |
#define | FAT_ATTR_DEVICE 0x40 |
#define | BYTES_PER_SECTOR 512 |
| count of bytes per sector - fixed for regular SD
|
#define | MAX_WAVES 32 |
| maximal count of voice files per language
|
#define | SPR_SONG_CUR 0 |
#define | SPR_MOUSE 2 |
#define | ger_0 0 |
#define | ger_1 1 |
#define | ger_2 2 |
#define | ger_3 3 |
#define | ger_4 4 |
#define | ger_5 5 |
#define | ger_6 6 |
#define | ger_7 7 |
#define | ger_8 8 |
#define | ger_9 9 |
#define | ger_10 10 |
#define | ger_11 11 |
#define | ger_12 12 |
#define | ger_14 13 |
#define | ger_16 14 |
#define | ger_17 15 |
#define | ger_20 16 |
#define | ger_30 17 |
#define | ger_40 18 |
#define | ger_50 19 |
#define | ger_60 20 |
#define | ger_70 21 |
#define | ger_80 22 |
#define | ger_90 23 |
#define | ger_100 24 |
#define | ger_minus 25 |
#define | ger_grad 26 |
#define | ger_celsius 27 |
#define | ger_fahrenheit 28 |
#define | ger_und 29 |
#define | eng_0 0 |
#define | eng_1 1 |
#define | eng_2 2 |
#define | eng_3 3 |
#define | eng_4 4 |
#define | eng_5 5 |
#define | eng_6 6 |
#define | eng_7 7 |
#define | eng_8 8 |
#define | eng_9 9 |
#define | eng_10 10 |
#define | eng_11 11 |
#define | eng_12 12 |
#define | eng_13 13 |
#define | eng_15 14 |
#define | eng_teen 15 |
#define | eng_20 16 |
#define | eng_30 17 |
#define | eng_40 18 |
#define | eng_50 19 |
#define | eng_60 20 |
#define | eng_70 21 |
#define | eng_80 22 |
#define | eng_90 23 |
#define | eng_100 24 |
#define | eng_minus 25 |
#define | eng_degree 26 |
#define | eng_celsius 27 |
#define | eng_fahrenheit 28 |
Functions |
void | mmc_processMixer () |
void | mmc_mixerStart (uint32_t lba) |
void | mmc_mixerStop () |
uint32_t | mmc_mixerGetCurrentSector () |
u8 | SD_init (void) |
int | convert_filename (unsigned char *fname) |
long | GetFileSector (DirectoryTableEntry *file) |
void | fat_init (unsigned char *buffer) |
u8 | find_files (const char *s) |
void | startSong () |
void | stopSong () |
void | stop_auto () |
void | play_queue () |
Variables |
union SectorData | sector |
Detailed Description
Uzewav Global defines and build options.
- Version:
- 1.1
- Date:
- 2012
- Author:
- Hartmut Wendt info@hwhardsoft.de.vu <http://www.hwhardsoft.de.vu>
- Copyright:
- GNU Public License V3
- Note:
- This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Function Documentation
convert the first 2 chars of WAV filename to a number
- Parameters:
-
- Return values:
-
0..98 | numeric values of two first chars in filename |
99 | first 2 chars are not numeric values |
init the FAT of the SD card
- Parameters:
-
- Returns:
- none
find valid files with extension of *char in the directory and store their first sector & filesize
- Parameters:
-
pointer | to string in flash with the file extension for example "GER" or "ENG" |
- Returns:
- count of found files
get the file sector from the SD card
- Parameters:
-
pointer | to a directory table entry |
- Returns:
- directory table
get current sector from SD card for playing
- Parameters:
-
- Returns:
- current sector
start the mixer for sound output
- Parameters:
-
LBA | (Logical Block Addressing) |
- Returns:
- none
stop the mixer for sound output
- Parameters:
-
- Returns:
- none
sound output - call once on each vsync
- Parameters:
-
- Returns:
- none
play automaticaly the wave files from queue
- Parameters:
-
- Returns:
- none
init the SD card for voice output
- Parameters:
-
- Return values:
-
0 | SD card init FAILED |
1 | FIRST READ FAILED |
2 | SD card init ok |
start playing of voice file
- Parameters:
-
- Returns:
- none
stop playing of voice file automaticaly at the end of voice file
- Parameters:
-
- Returns:
- none
stop playing of voice file before the end of voice file
- Parameters:
-
- Returns:
- none