#ifndef PLSR_SELF_TEST_H #define PLSR_SELF_TEST_H #include "plsr_types.h" #ifdef __cplusplus extern "C" { #endif /* 上电自测:Q0(A)/Q1(B) 输出三段 AB 正交周期,末段反向。 * 用于 P3b-2 上板验证,验证完成后应关闭。 */ PLSR_RESULT PlsrSelfTestQueue(void); /* P4-2 当量换算上板自测:Q0=PULSE、Y4=DIR,两段各1工程单位; * 3脉冲/2单位比例下应依次输出1、2个脉冲。 */ PLSR_RESULT PlsrEquivalentSelfTestQueue(void); /* P5 protection-chain board test: Q0=PULSE, Q4=DIR. The commanded * distance is deliberately longer than the +500-pulse soft limit. */ PLSR_RESULT PlsrProtectionSelfTestQueue(void); /* P6 board test: start four independent PULSE/DIR axes together. */ PLSR_RESULT PlsrFourAxisSelfTestQueue(void); #ifdef __cplusplus } #endif #endif /* PLSR_SELF_TEST_H */