_Slave_Ports_LOCAL.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. _Slave_Port _Slave_Ports[] = {
  2. {"CAN", 0x102, 0x07, 0x00, 0x00, 0x00, 0x00 }
  3. //,
  4. //{"CAN", 0x102, 0x01, 0x00, 0x01, 0xFF, 0x6d } //testowy ttl
  5. }; //TO BE REPLACED BY _Slave_Ports_LOCAL_LIST
  6. /*
  7. typedef struct {
  8. const char * const _Protocol;
  9. int _Slave_ID;
  10. int PortTypes; //0xFF = 1111 1111
  11. {
  12. bit 1 - PWM port
  13. bit 2 - on I2C managed port
  14. bit 3 - expanded port with LocalPort address
  15. bit 4 - not allocated
  16. bit 2 - not allocated
  17. bit 5 - not allocated
  18. bit 6 - not allocated
  19. bit 7 - not allocated
  20. bit 8 - not allocated
  21. }
  22. // byte has_Address;
  23. int Address ;
  24. // byte has_Local_Port;
  25. int LocalPort;
  26. int Exp_state; 0xFF = 1111 1111
  27. 0x00 = 0000 0000 = OFF = 0V
  28. 0x01 = 0000 0001 = ON = PWM max
  29. {
  30. bit 1 - OFF = 0V
  31. bit 2 - ON = PWM max
  32. bit 3 - not allocated
  33. bit 4 - not allocated
  34. bit 2 - not allocated
  35. bit 5 - not allocated
  36. bit 6 - not allocated
  37. bit 7 - not allocated
  38. bit 8 - not allocated
  39. }
  40. int Exp_state_ttl; // 0x00 = odswiezyc
  41. } _Slave_Port;
  42. */