You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
451 B

2 years ago
  1. /*
  2. * Functions.h
  3. *
  4. * Created on: 23.07.2018
  5. * Author: ed
  6. */
  7. #ifndef TMC_FUNCTIONS_H_
  8. #define TMC_FUNCTIONS_H_
  9. #include "API_Header.h"
  10. int32_t tmc_limitInt(int32_t value, int32_t min, int32_t max);
  11. int64_t tmc_limitS64(int64_t value, int64_t min, int64_t max);
  12. int32_t tmc_sqrti(int32_t x);
  13. int32_t tmc_filterPT1(int64_t *akku, int32_t newValue, int32_t lastValue, uint8_t actualFilter, uint8_t maxFilter);
  14. #endif /* TMC_FUNCTIONS_H_ */