📄 mp3playerstationsrecord.cpp
字号:
/* ------------------------------------------------------------------------ Copyright (C) COMNEON electronic technology GmbH & Co. OHG. All rights reserved. ------------------------------------------------------------------------ This document contains proprietary information belonging to COMNEON. Passing on and copying of this document, use and communication of its contents is not permitted without prior written authorisation. ------------------------------------------------------------------------ */#include "MP3PlayerApplicationPreComp.hpp"#include "MP3PlayerStationsRecord.hpp"MP3PlayerStationsRecord::MP3PlayerStationsRecord( UINT32 radio_freq ){ m_data.radio_freq = radio_freq;};/* ------------------------------------------------------------------------ SetData ------------------------------------------------------------------------ */void MP3PlayerStationsRecord::SetData(const UINT8* data) { if (data != 0) { memcpy(&m_data, data, sizeof(MP3PlayerStationsRecord::Persist)); }} // SetData/* ------------------------------------------------------------------------ GetPersistentSize ------------------------------------------------------------------------ */INT MP3PlayerStationsRecord::GetPersistentSize(){ return sizeof(Persist); //sizeof(AudioSetRecord::Persist); } // GetPersistentSize/* ------------------------------------------------------------------------ GetData ------------------------------------------------------------------------ */const UINT8* MP3PlayerStationsRecord::GetData(){ return (const UINT8*)&m_data;} // GetData
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -