stm32f3_hal_seccan.h 325 B

1234567891011121314151617
  1. #ifndef STM32F3_HAL_SECCAN_H
  2. #define STM32F3_HAL_SECCAN_H
  3. #include <stdint.h>
  4. int init_can(void);
  5. int init_adc(void);
  6. int init_pwm(void);
  7. int write_can(uint32_t addr, uint8_t *data, int len);
  8. int read_can(uint8_t *data, uint32_t *addr, int len);
  9. int read_adc(uint16_t *val);
  10. void change_pwm(uint16_t duty_cycle);
  11. #endif