ReadFirmware2.c 840 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*====================================================================*
  2. *
  3. * Copyright (c) 2013 Qualcomm Atheros, Inc.
  4. *
  5. * All rights reserved.
  6. *
  7. *====================================================================*/
  8. /*====================================================================*
  9. *
  10. * signed ReadFirmware2 (struct plc * plc);
  11. *
  12. * plc.h
  13. *
  14. * Read the firmware from flash memory using VS_MODULE_OPERATION
  15. * messages and write to file;
  16. *
  17. * Contributor(s):
  18. * Charles Maier <cmaier@qca.qualcomm.com>
  19. *
  20. *--------------------------------------------------------------------*/
  21. #ifndef READFIRMWARE2_SOURCE
  22. #define READFIRMWARE2_SOURCE
  23. #include "../plc/plc.h"
  24. signed ReadFirmware2 (struct plc * plc)
  25. {
  26. return (ModuleRead (plc, & plc->nvm, PLC_MOD_OP_READ_MEMORY, PLC_MODULEID_FIRMWARE, 0));
  27. }
  28. #endif