首页 > 其他 > 详细

just make right work, do not consider hardware

时间:2019-05-27 15:08:21      阅读:118      评论:0      收藏:0      [点我收藏+]

1. SensorPosition_cfg.c:

void  SensorPosition_ReadRequiredPorts  ( Spo_RequiredPortsT  * aps_RequiredPorts )
{
  /* SwcCddHallSensor A+B */
  SCI_Read_HallSensor_PulseCounter                    (&aps_RequiredPorts->u16_PulsCounter   [E_SPO_SPINDLE_PRIMARY]  , E_SHA_HALL_SECONDARY);
  SCI_Read_HallSensor_Rpm                             (&aps_RequiredPorts->u16_RPM           [E_SPO_SPINDLE_PRIMARY]  , E_SHA_HALL_SECONDARY);
  SCI_Read_HallSensor_Moving                          (&aps_RequiredPorts->b_Moving          [E_SPO_SPINDLE_PRIMARY]  , E_SHA_HALL_SECONDARY);
  SCI_Read_HallSensor_ErrorStuck                      (&aps_RequiredPorts->b_ErrorStuckHall  [E_SPO_SPINDLE_PRIMARY]  , E_SHA_HALL_SECONDARY);
  SCI_Read_HallSensor_Direction                       (&aps_RequiredPorts->e_Direction       [E_SPO_SPINDLE_PRIMARY]  , E_SHA_HALL_SECONDARY);

just make right work, do not consider hardware

原文:https://www.cnblogs.com/dannykong/p/10930737.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!