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.
Fork of TRP105F_Spline by
Revision 18:b046bba4ffa7, committed 2016-06-24
- Comitter:
- aktk
- Date:
- Fri Jun 24 11:33:01 2016 +0000
- Parent:
- 17:f6ec7796dafd
- Child:
- 19:ee2558b13570
- Commit message:
- In constructors, the type of arg_num was changed to unsigned short.; In constructor(ushort, PinName), the defalt useTpe came to be set to AsMODULE.
Changed in this revision
| TRP105F_Spline.cpp | Show annotated file Show diff for this revision Revisions of this file |
| TRP105F_Spline.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/TRP105F_Spline.cpp Wed Jun 08 13:14:17 2016 +0000
+++ b/TRP105F_Spline.cpp Fri Jun 24 11:33:01 2016 +0000
@@ -45,7 +45,7 @@
}
TRP105FS::TRP105FS(
- unsigned int arg_num
+ unsigned short arg_num
)
:_useType(AsMODULE)
,_ai(AnalogIn(DEFALT_AI_PIN))
@@ -63,7 +63,7 @@
}
TRP105FS::TRP105FS(
- unsigned int arg_num,
+ unsigned short arg_num,
UseType arg_type
)
:_useType(arg_type)
@@ -82,9 +82,10 @@
}
TRP105FS::TRP105FS(
- unsigned int arg_num,
+ unsigned short arg_num,
PinName pin
)
+ :_useType(AsMODULE)
:_ai(AnalogIn(pin))
{
@@ -101,7 +102,7 @@
}
TRP105FS::TRP105FS(
- unsigned int arg_num,
+ unsigned short arg_num,
UseType arg_type,
PinName pin
)
--- a/TRP105F_Spline.h Wed Jun 08 13:14:17 2016 +0000
+++ b/TRP105F_Spline.h Fri Jun 24 11:33:01 2016 +0000
@@ -59,10 +59,10 @@
public:
// Constraction
TRP105FS();
- TRP105FS(unsigned int);
- TRP105FS(unsigned int, UseType);
- TRP105FS(unsigned int, PinName);
- TRP105FS(unsigned int, UseType, PinName);
+ TRP105FS(unsigned short);
+ TRP105FS(unsigned short, UseType);
+ TRP105FS(unsigned short, PinName);
+ TRP105FS(unsigned short, UseType, PinName);
//TRP105FS(unsigned int arg_num, DataInType arg_dit, unsigned int channel);
// Destraction
~TRP105FS();
