PicoVersion.h 742 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /****************************************************************************
  2. *
  3. * Filename: PicoVersion.h
  4. * Copyright: Pico Technology Limited 2018 - 2022
  5. * Description:
  6. *
  7. * This header defines the version struct.
  8. *
  9. ****************************************************************************/
  10. #ifndef __PICOVERSION_H__
  11. #define __PICOVERSION_H__
  12. #include <stdint.h>
  13. #include "PicoStatus.h"
  14. #pragma pack(push, 1)
  15. typedef struct tPicoVersion
  16. {
  17. int16_t major_;
  18. int16_t minor_;
  19. int16_t revision_;
  20. int16_t build_;
  21. } PICO_VERSION;
  22. typedef struct tPicoFirmwareInfo {
  23. PICO_INFO firmwareType;
  24. PICO_VERSION currentVersion;
  25. PICO_VERSION updateVersion;
  26. uint16_t updateRequired;
  27. } PICO_FIRMWARE_INFO;
  28. #pragma pack(pop)
  29. #endif