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.h
- Revision:
- 22:fc802e7715f8
- Child:
- 24:f58a3c0071c3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CANController/CANController.h Fri Nov 07 21:09:50 2014 +0000
@@ -0,0 +1,23 @@
+#ifndef _FILE_CANCONTRL_H
+#define _FILE_CANCONTRL_H
+
+#include "DC_DC.h"
+#include "FanPump.h"
+
+enum ContrlPinName{
+ FAN1, FAN2, FAN3, PUMP
+}
+
+class CANController{
+public:
+ CANController();
+ bool dc_on();
+ void set_dc(bool status);
+ bool write_contrl(ContrlPinName name, float duty);
+ void direct_off(ContrlPinName name, float duty);
+ float *read_control();
+
+private:
+ FanPump *contrl_pins[6];
+ DC dc;
+}
\ No newline at end of file
