ReadParameters3.c 970 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*====================================================================*
  2. *
  3. * Copyright (c) 2013 Qualcomm Atheros, Inc.
  4. *
  5. * All rights reserved.
  6. *
  7. *====================================================================*/
  8. /*====================================================================*
  9. *
  10. * signed ReadParameters2 (struct plc * plc);
  11. *
  12. * plc.h
  13. *
  14. * Read the PIB Image from a QCA6410, QCA7000 or QCA7420 using as
  15. * many VS_MODULE_OPERATION messages as needed; Write image blocks
  16. * to file as they are read;
  17. *
  18. * Contributor(s):
  19. * Charles Maier <cmaier@qca.qualcomm.com>
  20. *
  21. *--------------------------------------------------------------------*/
  22. #ifndef READPARAMETERS3_SOURCE
  23. #define READPARAMETERS3_SOURCE
  24. #include "../plc/plc.h"
  25. #include "../nda/nda.h"
  26. signed ReadParameters3 (struct plc * plc)
  27. {
  28. return (~ AccessLevelPTS (plc)? ModuleRead (plc, & plc->pib, PLC_MOD_OP_READ_FLASH, PLC_MODULEID_PARAMETERS, 0): (-1));
  29. }
  30. #endif