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.
Dependencies: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
Diff: CANController/CANController.cpp
- Revision:
- 24:f58a3c0071c3
diff -r ebdb30592a4b -r f58a3c0071c3 CANController/CANController.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CANController/CANController.cpp Fri Nov 07 21:26:46 2014 +0000
@@ -0,0 +1,29 @@
+#include "CANController.h"
+
+CANController::CANController(){
+
+};
+
+bool CANController::dc_on(){
+ return dc.is_on();
+};
+
+void CANController::set_dc(bool status){
+ dc.set(status);
+};
+
+bool CANController::write_contrl(ContrlPinName name, float duty){
+ if(dc.is_on()){
+
+ return true;
+ }
+ return false;
+};
+
+void CANController::direct_off(ContrlPinName name, float duty){
+
+};
+
+float *CANController::read_control(){
+ return NULL;
+}
\ No newline at end of file
