openMSX
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
TsxParser Class Reference

#include <TsxParser.hh>

Public Types

enum class  FileType { ASCII , BINARY , BASIC , UNKNOWN }
 

Public Member Functions

 TsxParser (std::span< const uint8_t > file)
 
std::vector< int8_t > && stealOutput ()
 
std::optional< FileTypegetFirstFileType () const
 
const std::vector< std::string > & getMessages () const
 

Static Public Attributes

static constexpr unsigned TZX_Z80_FREQ = 3500000
 
static constexpr unsigned OUTPUT_FREQUENCY = 58900
 
static constexpr float T_STATES_MSX_PULSE = 238.f
 

Detailed Description

Definition at line 17 of file TsxParser.hh.

Member Enumeration Documentation

◆ FileType

enum class TsxParser::FileType
strong
Enumerator
ASCII 
BINARY 
BASIC 
UNKNOWN 

Definition at line 24 of file TsxParser.hh.

Constructor & Destructor Documentation

◆ TsxParser()

TsxParser::TsxParser ( std::span< const uint8_t >  file)
explicit

Definition at line 53 of file TsxParser.cc.

References Endian::read_UA_B16().

Member Function Documentation

◆ getFirstFileType()

std::optional< FileType > TsxParser::getFirstFileType ( ) const
inline

Definition at line 32 of file TsxParser.hh.

Referenced by openmsx::TsxImage::TsxImage().

◆ getMessages()

const std::vector< std::string > & TsxParser::getMessages ( ) const
inline

Definition at line 33 of file TsxParser.hh.

Referenced by openmsx::TsxImage::TsxImage().

◆ stealOutput()

std::vector< int8_t > && TsxParser::stealOutput ( )
inline

Definition at line 31 of file TsxParser.hh.

Referenced by openmsx::TsxImage::TsxImage().

Member Data Documentation

◆ OUTPUT_FREQUENCY

constexpr unsigned TsxParser::OUTPUT_FREQUENCY = 58900
staticconstexpr

Definition at line 21 of file TsxParser.hh.

Referenced by openmsx::TsxImage::getFrequency().

◆ T_STATES_MSX_PULSE

constexpr float TsxParser::T_STATES_MSX_PULSE = 238.f
staticconstexpr

Definition at line 22 of file TsxParser.hh.

◆ TZX_Z80_FREQ

constexpr unsigned TsxParser::TZX_Z80_FREQ = 3500000
staticconstexpr

Definition at line 20 of file TsxParser.hh.


The documentation for this class was generated from the following files: