Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HSP_RPC_GUI by
HSP/LoggingService/Logging.h@0:e4a10ed6eb92, 2016-10-25 (annotated)
- Committer:
- jbradshaw
- Date:
- Tue Oct 25 15:22:11 2016 +0000
- Revision:
- 0:e4a10ed6eb92
tewt
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jbradshaw | 0:e4a10ed6eb92 | 1 | #ifndef _LOGGING_H_ |
jbradshaw | 0:e4a10ed6eb92 | 2 | #define _LOGGING_H_ |
jbradshaw | 0:e4a10ed6eb92 | 3 | |
jbradshaw | 0:e4a10ed6eb92 | 4 | #include "mbed.h" |
jbradshaw | 0:e4a10ed6eb92 | 5 | |
jbradshaw | 0:e4a10ed6eb92 | 6 | /** |
jbradshaw | 0:e4a10ed6eb92 | 7 | * @brief This will read the mission location and if there is something valid, |
jbradshaw | 0:e4a10ed6eb92 | 8 | * then run the Logging_ProcessMissionCmds() |
jbradshaw | 0:e4a10ed6eb92 | 9 | * @param cmdBuffer buffer |
jbradshaw | 0:e4a10ed6eb92 | 10 | */ |
jbradshaw | 0:e4a10ed6eb92 | 11 | uint32_t Logging_IsMissionDefined(uint8_t *cmdBuffer); |
jbradshaw | 0:e4a10ed6eb92 | 12 | |
jbradshaw | 0:e4a10ed6eb92 | 13 | int8_t Logging_ReadMissionFromFlash(uint8_t *buffer); |
jbradshaw | 0:e4a10ed6eb92 | 14 | |
jbradshaw | 0:e4a10ed6eb92 | 15 | // return the page where mission is defined, Mission specific |
jbradshaw | 0:e4a10ed6eb92 | 16 | uint32_t Logging_GetMissionStartPage(void); |
jbradshaw | 0:e4a10ed6eb92 | 17 | |
jbradshaw | 0:e4a10ed6eb92 | 18 | // return the page where the mission definition ends, Mission specific |
jbradshaw | 0:e4a10ed6eb92 | 19 | uint32_t Logging_GetMissionEndPage(void); |
jbradshaw | 0:e4a10ed6eb92 | 20 | |
jbradshaw | 0:e4a10ed6eb92 | 21 | // Returns the location where the Writing can start from, for data logging... |
jbradshaw | 0:e4a10ed6eb92 | 22 | uint32_t Logging_GetLoggingStartPage(void); |
jbradshaw | 0:e4a10ed6eb92 | 23 | |
jbradshaw | 0:e4a10ed6eb92 | 24 | // Returns the end location available where the Flash ends essentially.... for |
jbradshaw | 0:e4a10ed6eb92 | 25 | // data logging. |
jbradshaw | 0:e4a10ed6eb92 | 26 | uint32_t Logging_GetLoggingEndPage(void); |
jbradshaw | 0:e4a10ed6eb92 | 27 | |
jbradshaw | 0:e4a10ed6eb92 | 28 | // returns one if the usb is connected, zero if not |
jbradshaw | 0:e4a10ed6eb92 | 29 | uint32_t Usb_IsConnected(void); |
jbradshaw | 0:e4a10ed6eb92 | 30 | |
jbradshaw | 0:e4a10ed6eb92 | 31 | void Logging_SetStart(bool state); |
jbradshaw | 0:e4a10ed6eb92 | 32 | |
jbradshaw | 0:e4a10ed6eb92 | 33 | bool Logging_GetStart(void); |
jbradshaw | 0:e4a10ed6eb92 | 34 | |
jbradshaw | 0:e4a10ed6eb92 | 35 | #endif /* _LOGGING_H_ */ |