Projet voilier 4IRA1 Arnaud Vergnet Marino Benassai Bastien Picco Yohan Simard
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.

RFReceiver.c 336B

123456789101112131415
  1. #include "RFReceiver.h"
  2. void RFReceiver_conf(TIM_TypeDef * timer, int channel)
  3. {
  4. PWMi_conf(timer, channel);
  5. }
  6. float RFReceiver_getData(TIM_TypeDef * timer)
  7. {
  8. const float duty_cycle = PWMi_getDutyCycle(timer);
  9. // const int period = PWMi_getPeriod(timer);
  10. // const float duree_impulsion = duty_cycle * period;
  11. return duty_cycle;
  12. }