#include "fs_com.h"
#include "fat.h"
#include "navigation.h"
#include "play_list.h"
Go to the source code of this file.
Typedefs |
typedef uint8_t | Navauto_mode |
| Structure to store the directory limitation of the file list.
|
typedef uint8_t | Navauto_rand |
| Structure to store the random state.
|
Data Structure Documentation
union Navauto_mov_bitfield_status |
struct Navauto_mov_bitfield_status.__unnamed__ |
Definition at line 85 of file nav_automatic.h.
Data Fields |
uint8_t |
__pad0__: 7 |
|
uint8_t |
folder_change: 1 |
|
Macro Definition Documentation
#define NAVAUTO_MODE_DIRONLY 2 |
#define NAVAUTO_MODE_DIRSUB 3 |
#define NAVAUTO_MODE_DISK 1 |
#define NAVAUTO_MODE_DISKS 0 |
#define NAVAUTO_MODE_NB 4 |
#define NAVAUTO_MOV_DISKERROR 4 |
#define NAVAUTO_MOV_DISKNOPRESENT 3 |
#define NAVAUTO_MOV_EMPTY 2 |
#define NAVAUTO_MOV_OK_LOOP 1 |
#define NAVAUTO_RAND_OFF 0 |
#define NAVAUTO_RAND_ON 1 |
Typedef Documentation
Enumeration Type Documentation
- Enumerator:
NAVAUTO_MOV_OPTS_NONE |
|
NAVAUTO_MOV_OPTS_STAY_CURRENT_DIR |
|
Definition at line 119 of file nav_automatic.h.
Function Documentation
uint16_t navauto_close |
( |
void |
| ) |
|
- Returns:
- If a play list file is open then it is the last position in the file list else it is the directory level corresponding at the last selected file
//! At the end of this routine, the selected file of current navigator is :
//! - the play list file (in case of a play list file has been opened)
//! - the last selected file (in other case)
//!
Definition at line 520 of file nav_automatic.c.
- Returns:
- Used navigation mode (NAVAUTO_MODE_DISKS, NAVAUTO_MODE_DIRONLY, NAVAUTO_MODE_DIRSUB)
//! This parameter is ignored then a play list file is selected
//!
Definition at line 171 of file nav_automatic.c.
uint16_t navauto_getnb |
( |
void |
| ) |
|
uint16_t navauto_getpos |
( |
void |
| ) |
|
void navauto_init |
( |
const FS_STRING |
sz_filterext | ) |
|
- Parameters:
-
sz_filterext | file extension filter |
//! This parameter is ignored then a play list file is selected
//!
Definition at line 302 of file nav_automatic.c.
- Parameters:
-
b_direction | jump direction (FS_FIND_NEXT or FS_FIND_PREV) |
options | jump direction (FS_FIND_NEXT or FS_FIND_PREV) |
- Returns:
- the status of the action
//! When the random is ON, the direction is ignored
//!
Definition at line 584 of file nav_automatic.c.
bool navauto_open |
( |
bool |
b_playlist, |
|
|
uint16_t |
pos |
|
) |
| |
- Parameters:
-
b_playlist | if true then the current selected file is a play list file to open else create a file list with files included in a disk part |
pos | If b_playlist true, then position in the play list to start else folder level of the current position |
- Returns:
- false, in case of error or file list empty
Definition at line 319 of file nav_automatic.c.
- Parameters:
-
exp_mode | mode to select (NAVAUTO_MODE_DISKS, NAVAUTO_MODE_DIRONLY, NAVAUTO_MODE_DIRSUB) |
- Returns:
- true, mode changed
-
false, mode can't be changed (note: the selected file must be close)
//! This parameter is ignored then a play list file is selected
//! When the mode change, the folder level is reseted at the current position.
//!
Definition at line 189 of file nav_automatic.c.
bool navauto_setpos |
( |
uint16_t |
u16_pos | ) |
|
- Parameters:
-
u16_pos | new position to select |
- Returns:
- false in case of error
Definition at line 552 of file nav_automatic.c.