Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

49 lignes
1.2 KiB

  1. #ifndef PLSR_ADDRESS_MAP_H
  2. #define PLSR_ADDRESS_MAP_H
  3. #include <stdint.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #define PLSR_AXIS_COUNT (4U)
  8. #define PLSR_HSD_RUNTIME_START (0U)
  9. #define PLSR_HSD_RUNTIME_COUNT (16U)
  10. #define PLSR_HSD_RUNTIME_AXIS_COUNT (4U)
  11. #define PLSR_HSD_CONFIG_START (460U)
  12. #define PLSR_HSD_CONFIG_COUNT (80U)
  13. #define PLSR_SFD_CONFIG_START (900U)
  14. #define PLSR_SFD_CONFIG_COUNT (520U)
  15. #define PLSR_SD_AXIS_ITEM_COUNT (12U)
  16. #define PLSR_EVENT_AXIS_ITEM_COUNT (100U)
  17. #define PLSR_SD_ITEM_SEGMENT (0U)
  18. #define PLSR_SD_ITEM_SEGMENT_PULSES (2U)
  19. #define PLSR_SD_ITEM_SEGMENT_EQUIV (4U)
  20. #define PLSR_SD_ITEM_FREQUENCY (6U)
  21. #define PLSR_SD_ITEM_SPEED (8U)
  22. #define PLSR_SD_ITEM_ERROR_CODE (10U)
  23. #define PLSR_SD_ITEM_ERROR_BLOCK (11U)
  24. typedef struct
  25. {
  26. uint16_t hsdRuntimeBase;
  27. uint16_t smPulseActiveAddress;
  28. uint16_t smDirectionAddress;
  29. uint16_t sdRuntimeBase;
  30. uint16_t eventBase;
  31. } PLSR_AXIS_ADDRESS_MAP;
  32. extern const PLSR_AXIS_ADDRESS_MAP PlsrAxisAddressMap[PLSR_AXIS_COUNT];
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif /* PLSR_ADDRESS_MAP_H */