Murata RF modules are designed to simplify wireless development and certification by minimizing the amount of RF expertise you need to wirelessly enable a wide range of applications.

Committer:
yangcq88517
Date:
Mon Feb 15 15:17:50 2016 +0000
Revision:
8:5856c23794b1
Parent:
0:8e83b9448758
update

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yangcq88517 0:8e83b9448758 1 #include "VersionInfoResponse.h"
yangcq88517 0:8e83b9448758 2
yangcq88517 0:8e83b9448758 3 using namespace SmartLabMuRata;
yangcq88517 0:8e83b9448758 4
yangcq88517 0:8e83b9448758 5 VersionInfoResponse::VersionInfoResponse(Payload * payload)
yangcq88517 0:8e83b9448758 6 : Payload(payload)
yangcq88517 0:8e83b9448758 7 { }
yangcq88517 0:8e83b9448758 8
yangcq88517 0:8e83b9448758 9 CMDCode VersionInfoResponse::GetStatus()
yangcq88517 0:8e83b9448758 10 {
yangcq88517 0:8e83b9448758 11 return (CMDCode)GetData()[2];
yangcq88517 0:8e83b9448758 12 }
yangcq88517 0:8e83b9448758 13
yangcq88517 0:8e83b9448758 14 char VersionInfoResponse::GetVersionStringLength()
yangcq88517 0:8e83b9448758 15 {
yangcq88517 0:8e83b9448758 16 return GetData()[3];
yangcq88517 0:8e83b9448758 17 }
yangcq88517 0:8e83b9448758 18
yangcq88517 0:8e83b9448758 19 string VersionInfoResponse::GetVsersionString()
yangcq88517 0:8e83b9448758 20 {
yangcq88517 0:8e83b9448758 21 int size = GetVersionStringLength();
yangcq88517 0:8e83b9448758 22 return string(GetData() + 4, size);
yangcq88517 0:8e83b9448758 23 }