Wilson Tang
/
HSP_RPC_GUI
Fork of the offical HSP_RPC_GUI firmware
Fork of MAXREFDES100 firmware for MAX32620HSP
HSP/LoggingService/Logging.h@4:18155622d30a, 2020-01-28 (annotated)
- Committer:
- wt8008
- Date:
- Tue Jan 28 20:22:16 2020 +0000
- Revision:
- 4:18155622d30a
- Parent:
- 0:e4a10ed6eb92
Update Maxim's USBDevice project to the latest version
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_ */ |