Knud Dalgaard / 310-TMC3-TestHW

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mbed_unit.h Source File

mbed_unit.h

00001 #include "mbed.h"
00002 
00003 
00004 
00005 //---------------------------------------
00006 // Definitions
00007 //---------------------------------------
00008 
00009 
00010 //---------------------------------------
00011 // Enums
00012 //---------------------------------------
00013 
00014 
00015 
00016 
00017 // Global commands 0 - 20 are defined in interpret.h
00018 // Commands 21 - 127 are HW-unit commands
00019 typedef enum
00020 {
00021     MBED_SET_RPM_LEVEL_LOW = 21,    // 21: setRPMLevelLow
00022     MBED_SET_RPM_LEVEL_HIGH,        // 22: setRPMLevelLow
00023     MBED_SET_PWM_PORT,              // 23: setPWMPort
00024     MBED_SET_PWM_FREQ,              // 24: setPWMFreq
00025     MBED_SET_PWM_DC,                // 25: setPWMDutyCycle
00026     MBED_WRITE_RS232,               // 26: writeRS232
00027     MBED_READ_RS232,                // 27: readRS232
00028     MBED_SET_RTSRS232,              // 28: setRTSRS232
00029     MBED_GET_CTSRS232,              // 29: getCTSRS232
00030     MBED_WRITE_CAN,                 // 30: writeCAN
00031     MBED_READ_CAN,                  // 31: readCAN
00032     MBED_READ_ADC,                  // 32: readADC
00033     MBED_SET_RELAY,                 // 33: setRelay
00034     MBED_SET_DO1,                   // 34: setDO1
00035     MBED_SET_DO2,                   // 35: setDO2
00036     MBED_GET_DI,                    // 36: getDI
00037     MBED_WRITE_RS485,               // 37: writeRS485
00038     MBED_READ_RS485,                // 38: readRS485
00039     //----------------
00040     CNT_eMBED_command
00041 }eMBED_command;
00042 
00043 
00044 
00045 //---------------------------------------
00046 // Structures
00047 //---------------------------------------
00048 
00049 
00050 
00051 //---------------------------------------
00052 // Global Variables
00053 //---------------------------------------
00054 
00055 
00056 
00057 //---------------------------------------
00058 // Global Functions
00059 //---------------------------------------
00060 void MBED_init( void );
00061 void MBED_deviceID_process( void );