Aaron Silva
/
HSP_RPC_GUI
publishing
HSP/LoggingService/Logging.h@0:fd5a76956754, 2017-03-09 (annotated)
- Committer:
- asilva14
- Date:
- Thu Mar 09 23:54:04 2017 +0000
- Revision:
- 0:fd5a76956754
commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
asilva14 | 0:fd5a76956754 | 1 | #ifndef _LOGGING_H_ |
asilva14 | 0:fd5a76956754 | 2 | #define _LOGGING_H_ |
asilva14 | 0:fd5a76956754 | 3 | |
asilva14 | 0:fd5a76956754 | 4 | #include "mbed.h" |
asilva14 | 0:fd5a76956754 | 5 | |
asilva14 | 0:fd5a76956754 | 6 | /** |
asilva14 | 0:fd5a76956754 | 7 | * @brief This will read the mission location and if there is something valid, |
asilva14 | 0:fd5a76956754 | 8 | * then run the Logging_ProcessMissionCmds() |
asilva14 | 0:fd5a76956754 | 9 | * @param cmdBuffer buffer |
asilva14 | 0:fd5a76956754 | 10 | */ |
asilva14 | 0:fd5a76956754 | 11 | uint32_t Logging_IsMissionDefined(uint8_t *cmdBuffer); |
asilva14 | 0:fd5a76956754 | 12 | |
asilva14 | 0:fd5a76956754 | 13 | int8_t Logging_ReadMissionFromFlash(uint8_t *buffer); |
asilva14 | 0:fd5a76956754 | 14 | |
asilva14 | 0:fd5a76956754 | 15 | // return the page where mission is defined, Mission specific |
asilva14 | 0:fd5a76956754 | 16 | uint32_t Logging_GetMissionStartPage(void); |
asilva14 | 0:fd5a76956754 | 17 | |
asilva14 | 0:fd5a76956754 | 18 | // return the page where the mission definition ends, Mission specific |
asilva14 | 0:fd5a76956754 | 19 | uint32_t Logging_GetMissionEndPage(void); |
asilva14 | 0:fd5a76956754 | 20 | |
asilva14 | 0:fd5a76956754 | 21 | // Returns the location where the Writing can start from, for data logging... |
asilva14 | 0:fd5a76956754 | 22 | uint32_t Logging_GetLoggingStartPage(void); |
asilva14 | 0:fd5a76956754 | 23 | |
asilva14 | 0:fd5a76956754 | 24 | // Returns the end location available where the Flash ends essentially.... for |
asilva14 | 0:fd5a76956754 | 25 | // data logging. |
asilva14 | 0:fd5a76956754 | 26 | uint32_t Logging_GetLoggingEndPage(void); |
asilva14 | 0:fd5a76956754 | 27 | |
asilva14 | 0:fd5a76956754 | 28 | // returns one if the usb is connected, zero if not |
asilva14 | 0:fd5a76956754 | 29 | uint32_t Usb_IsConnected(void); |
asilva14 | 0:fd5a76956754 | 30 | |
asilva14 | 0:fd5a76956754 | 31 | void Logging_SetStart(bool state); |
asilva14 | 0:fd5a76956754 | 32 | |
asilva14 | 0:fd5a76956754 | 33 | bool Logging_GetStart(void); |
asilva14 | 0:fd5a76956754 | 34 | |
asilva14 | 0:fd5a76956754 | 35 | #endif /* _LOGGING_H_ */ |