| 12345678910111213141516171819202122232425262728 |
- #ifndef _PHASE_CURRENT_H__
- #define _PHASE_CURRENT_H__
- #include "foc_type.h"
- /* boundary zone definition */
- #define REGULAR ((uint8_t)0u)
- #define BOUNDARY_1 ((uint8_t)1u) /* Two small, one big */
- #define BOUNDARY_2 ((uint8_t)2u) /* Two big, one small */
- #define BOUNDARY_3 ((uint8_t)3u) /* Three equal */
- #define SAMP_NO 0u
- #define SAMP_IA 1u
- #define SAMP_IB 2u
- #define SAMP_IC 3u
- #define SAMP_NIA 4u
- #define SAMP_NIB 5u
- #define SAMP_NIC 6u
- #define SAMP_OLDA 7u
- #define SAMP_OLDB 8u
- #define SAMP_OLDC 9u
- void phase_current_init(current_samp_t *cs);
- void phase_current_sample(current_samp_t *cs);
- void phase_current_offset(current_samp_t *cs);
- void get_phase_sample_point(current_samp_t *cs, u8 sector);
- void phase_current_adc_triger(current_samp_t *cs);
- #endif /* _PHASE_CURRENT_H__ */
|