Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: NucleoMGC3130 i2c_master
Parameter.h
00001 #ifndef UK_AC_HERTS_SMARTLAB_MGC3130_Parameter 00002 #define UK_AC_HERTS_SMARTLAB_MGC3130_Parameter 00003 00004 #include "mbed.h" 00005 00006 class Parameter 00007 { 00008 protected: 00009 char value[12]; 00010 00011 public: 00012 static const int Length = 12; 00013 00014 char * gets() { 00015 return value; 00016 } 00017 00018 void setRuntimeParameterID(int id) { 00019 value[0] = id; 00020 value[1] = id >> 8; 00021 } 00022 00023 void setArgument0(long arg0) { 00024 value[4] = arg0; 00025 value[5] = arg0 >> 8; 00026 value[6] = arg0 >> 16; 00027 value[7] = arg0 >> 24; 00028 } 00029 00030 void setArgument1(long arg1) { 00031 value[8] = arg1; 00032 value[9] = arg1 >> 8; 00033 value[10] = arg1 >> 16; 00034 value[11] = arg1 >> 24; 00035 } 00036 }; 00037 00038 #endif
Generated on Fri Jul 15 2022 02:54:57 by
