David Giles
/
CM-MBED_RSEDP_Test_Suite_LPC1768_V3
This is a complete listing of the RS-EDP software for the mbed module to support the RS-EDP platform.
HeaderFiles/RSEDP_MC1.h@0:5b7639d1f2c4, 2010-11-19 (annotated)
- Committer:
- DavidGilesHitex
- Date:
- Fri Nov 19 09:49:16 2010 +0000
- Revision:
- 0:5b7639d1f2c4
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DavidGilesHitex | 0:5b7639d1f2c4 | 1 | /* Header file for MC1 Motor Drive module */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 2 | /* ************************************** */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 3 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 4 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 5 | /* Setup the MC1 Board */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 6 | extern void RSEDP_MC1_Setup(void); |
DavidGilesHitex | 0:5b7639d1f2c4 | 7 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 8 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 9 | /* Analogue Levels */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 10 | extern uint16_t RSEDP_MC1_Read_VDCLINK(uint8_t channel); /* Read the filtered 12V DC voltage on the MC1 board via pot down resistors */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 11 | extern uint16_t RSEDP_MC1_Read_VSENSE(uint8_t channel); /* Read the filtered current sense output from the MC1 board */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 12 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 13 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 14 | /* Digital level inputs */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 15 | extern uint8_t RSEDP_MC1_Read_Encoder0_Input(uint8_t pin_option); /* Read the physical level on the Encoder0 input pin on P301 pin 8 on the MC1 board*/ |
DavidGilesHitex | 0:5b7639d1f2c4 | 16 | extern uint8_t RSEDP_MC1_Read_Encoder1_Input(uint8_t pin_option); /* Read the physical level on the Encoder1 input pin on P301 pin 10 on the MC1 board*/ |
DavidGilesHitex | 0:5b7639d1f2c4 | 17 | extern uint8_t RSEDP_MC1_Read_Tacho_Input(uint8_t pin_option); /* Read the physical level on the Tacho Pulses Input pin on P301 pin 6 on the MC1 board */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 18 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 19 | |
DavidGilesHitex | 0:5b7639d1f2c4 | 20 | /* Outputs */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 21 | extern void RSEDP_MC1_Set_Motor_Direction(uint8_t motor_direction, uint8_t pin_option); /* Set the motor direction */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 22 | extern void RSEDP_MC1_Brake(uint8_t brake_onoff, uint8_t pin_option); /* turn the brake on or off */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 23 | extern void RSEDP_MC1_Set_Motor_Speed_Duty(float motor_speed_duty, uint8_t pin_option); /* Power control of motor speed controller using PWM */ |
DavidGilesHitex | 0:5b7639d1f2c4 | 24 |