gg
Dependencies: mbed MPU6050 RateLimiter test Math
SPN7Driver.h
00001 /* mbed Microcontroller Library 00002 * Copyright (c) 2006-2016 ARM Limited 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 /** 00018 ****************************************************************************** 00019 * @file SPN7Driver.h 00020 * @author STMicroelectronics 00021 * @brief Header file for SPN7Driver based on BLDCmotorDriver class 00022 ****************************************************************************** 00023 * @copy 00024 * 00025 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 00026 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 00027 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 00028 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 00029 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 00030 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 00031 * 00032 * <h2><center>© COPYRIGHT 2016 STMicroelectronics</center></h2> 00033 */ 00034 00035 // This example is based on the BLDCmotorDriver motor control library 00036 // by the TVZ Mechatronics Team, University of Applied Sciences Zagreb, 00037 // Professional Study in Mechatronics: 00038 // https://developer.mbed.org/teams/TVZ-Mechatronics-Team/code/BLDCmotorDriver/ 00039 00040 #ifndef __SPN7DRIVER_H__ 00041 #define __SPN7DRIVER_H__ 00042 00043 #include "mbed.h" 00044 #include "BLDCmotorDriver.h" 00045 00046 class SPN7Driver : public BLDCmotorDriver { 00047 public: 00048 SPN7Driver(PinName pIN1, PinName pIN2, PinName pIN3, 00049 PinName pEN1, PinName pEN2, PinName pEN3, 00050 PinName pH1, PinName pH2, PinName pH3, 00051 PinName pC1, PinName pC2, PinName pC3, 00052 PinName pFault); 00053 void setDutyCycle(float dutyCycle); 00054 00055 protected: 00056 void commutation(); 00057 }; 00058 00059 #endif // __SPN7DRIVER_H__
Generated on Tue Jul 26 2022 18:29:46 by 1.7.2