link_layer_private.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * link_layer_private.h
  3. *
  4. * Copyright 2017 MZ Automation GmbH
  5. *
  6. * This file is part of lib60870-C
  7. *
  8. * lib60870-C is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * lib60870-C is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with lib60870-C. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. * See COPYING file for the complete license text.
  22. */
  23. #ifndef _LINK_LAYER_PRIVATE_H
  24. #define _LINK_LAYER_PRIVATE_H
  25. #define LL_FC_00_RESET_REMOTE_LINK 0
  26. #define LL_FC_01_RESET_USER_PROCESS 1
  27. #define LL_FC_02_TEST_FUNCTION_FOR_LINK 2
  28. #define LL_FC_03_USER_DATA_CONFIRMED 3
  29. #define LL_FC_04_USER_DATA_NO_REPLY 4
  30. #define LL_FC_07_RESET_FCB 7
  31. #define LL_FC_08_REQUEST_FOR_ACCESS_DEMAND 8
  32. #define LL_FC_09_REQUEST_LINK_STATUS 9
  33. #define LL_FC_10_REQUEST_USER_DATA_CLASS_1 10
  34. #define LL_FC_11_REQUEST_USER_DATA_CLASS_2 11
  35. #define LL_FC_00_ACK 0
  36. #define LL_FC_01_NACK 1
  37. #define LL_FC_08_RESP_USER_DATA 8
  38. #define LL_FC_09_RESP_NACK_NO_DATA 9
  39. #define LL_FC_11_STATUS_OF_LINK_OR_ACCESS_DEMAND 11
  40. #define LL_FC_14_SERVICE_NOT_FUNCTIONING 14
  41. #define LL_FC_15_SERVICE_NOT_IMPLEMENTED 15
  42. #endif /* SRC_IEC60870_LINK_LAYER_LINK_LAYER_PRIVATE_H_ */