⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mp3playersettingsrecord.cpp

📁 music player developemntm usic player developemntm usic player developemntmusic player developemnt
💻 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 "FmRadioApplicationPreComp.hpp"#include "FmRadioSettingsRecord.hpp"#include <Config/FactorySettingsConfig.hpp>FmRadioSettingsRecord::FmRadioSettingsRecord(){	SetDefault();}FmRadioSettingsRecord::FmRadioSettingsRecord( UINT8 radio_last_volume,													UINT32 radio_last_freq ){	m_data.radio_last_volume = radio_last_volume;	m_data.radio_last_freq = radio_last_freq;};/*	------------------------------------------------------------------------	SetDefault	------------------------------------------------------------------------ */void FmRadioSettingsRecord::SetDefault(){	m_data.radio_last_volume = fmradio_Volume;	m_data.radio_last_freq = fmradio_Frequency;}/*	------------------------------------------------------------------------	SetData	------------------------------------------------------------------------ */void FmRadioSettingsRecord::SetData(const UINT8* data) { 	if (data != 0) {		memcpy(&m_data, data, sizeof(FmRadioSettingsRecord::Persist));	}}	// SetData/*	------------------------------------------------------------------------	GetPersistentSize	------------------------------------------------------------------------ */INT FmRadioSettingsRecord::GetPersistentSize(){ 	return sizeof(Persist); //sizeof(AudioSetRecord::Persist); }	// GetPersistentSize/*	------------------------------------------------------------------------	GetData	------------------------------------------------------------------------ */const UINT8* FmRadioSettingsRecord::GetData(){ 	 return (const UINT8*)&m_data;}	// GetData

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -