# modules/midifile/mid_parser.c File Reference

`#include <mios32.h>`
`#include <string.h>`
`#include <FreeRTOS.h>`
`#include "mid_parser.h"`

## Data Structures
struct | midi_track_t
## Defines
#define | DEBUG_VERBOSE_LEVEL 0
## Functions
s32 | MID_PARSER_Init (u32 mode)
s32 | MID_PARSER_InstallFileCallbacks (void *mid_parser_read, void *mid_parser_eof, void *mid_parser_seek)
s32 | MID_PARSER_InstallEventCallbacks (void *mid_parser_playevent, void *mid_parser_playmeta)
s32 | MID_PARSER_FileIsValid (void)
s32 | MID_PARSER_Read (void)
s32 | MIDI_PARSER_FormatGet (void)
s32 | MIDI_PARSER_PPQN_Get (void)
s32 | MIDI_PARSER_TrackNumGet (void)
s32 | MID_PARSER_FetchEvents (u32 tick_offset, u32 num_ticks)
s32 | MID_PARSER_RestartSong (void)

## Define Documentation

#define DEBUG_VERBOSE_LEVEL 0

## Function Documentation

s32 MID_PARSER_FetchEvents | ( | u32 | tick_offset,
|  | u32 | num_ticks |
| ) |  |  |

s32 MID_PARSER_FileIsValid | ( | void |  | ) |

s32 MID_PARSER_Init | ( | u32 | mode | ) |

s32 MID_PARSER_InstallEventCallbacks | ( | void * | mid_parser_playevent,
|  | void * | mid_parser_playmeta |
| ) |  |  |

s32 MID_PARSER_InstallFileCallbacks | ( | void * | mid_parser_read,
|  | void * | mid_parser_eof,
|  | void * | mid_parser_seek |
| ) |  |  |

s32 MID_PARSER_Read | ( | void |  | ) |

s32 MID_PARSER_RestartSong | ( | void |  | ) |

s32 MIDI_PARSER_FormatGet | ( | void |  | ) |

s32 MIDI_PARSER_PPQN_Get | ( | void |  | ) |

s32 MIDI_PARSER_TrackNumGet | ( | void |  | ) |