Library Functions.
More...
Library Functions.
Initializes TIM and PWM for servo motor purpose.
- Parameters
-
| *ServoStruct | Pointer to an empty TM_SERVO_t servo structure |
| *TIMx | Pointer to TIMx you will use for servo |
| PWMChannel | Channel you will use for timer. This parameter can be a value of TM_PWM_Channel_t enumeration |
| Pinspack | Pinspack for channel. This parameter can be a value of TM_PWM_PinsPack_t enumeration |
- Return values
-
| Member | of TM_SERVO_Result_t |
Set rotation degrees for servo.
- Note
- Degrees can be between 0 and 180
- Parameters
-
| *ServoStruct | Pointer to an TM_SERVO_t servo structure |
| degrees | Rotation in degrees, between 0 and 180 |
- Return values
-
| Member | of TM_SERVO_Result_t |
Sets pulse length in microseconds.
- Parameters
-
| *ServoStruct | Pointer to an TM_SERVO_t servo structure |
| micros | pulse length in microseconds |
- Return values
-
| Member | of TM_SERVO_Result_t |