在实验中,用测速电机测得的车轮脉冲信号,发送到接收板子,在接收板子中建立一个缓冲队列,将接收到的脉冲信号,写入到这个缓冲队列中。可是,怎么写入呢?这个脉冲信号是什么呢(0或1或其他)?
typedef unsigned char QueneValue;
typedef struct {
unsigned short in; /* Queue input/write pointer */
unsigned short full; /* Queue full flag */
unsigned short non; /* Queue non flag */
unsigned short out; /* Queue output/read pointer */
QueneValue qq[qsize1]; /* Queue array */
} Quene;
char QueneWrite(QueneValue *Data,Quene *quene)