dsi_convert.h 1015 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. This software is subject to the license described in the License.txt file
  3. included with this software distribution. You may not use this file except
  4. in compliance with this license.
  5. Copyright (c) Dynastream Innovations Inc. 2016
  6. All rights reserved.
  7. */
  8. #if !defined(DSI_CONVERT_H)
  9. #define DSI_CONVERT_H
  10. #include "types.h"
  11. #if defined(__cplusplus)
  12. extern "C" {
  13. #endif
  14. //////////////////////////////////////////////////////////////////////////////////
  15. // Public Function Prototypes
  16. //////////////////////////////////////////////////////////////////////////////////
  17. //For all functions below ucByte0 is LSB
  18. void Convert_USHORT_To_Bytes(USHORT usNum, UCHAR* ucByte1, UCHAR* ucByte0);
  19. USHORT Convert_Bytes_To_USHORT(UCHAR ucByte1, UCHAR ucByte0);
  20. void Convert_ULONG_To_Bytes(ULONG ulNum, UCHAR* ucByte3, UCHAR* ucByte2, UCHAR* ucByte1, UCHAR* ucByte0);
  21. ULONG Convert_Bytes_To_ULONG(UCHAR ucByte3, UCHAR ucByte2, UCHAR ucByte1, UCHAR ucByte0);
  22. #if defined(__cplusplus)
  23. }
  24. #endif
  25. #endif // !defined(DSI_DEBUG_H)