Log messages stored in the debug flash region, one generation per boot.
More...
Log messages stored in the debug flash region, one generation per boot.
◆ pbl_log_flash_dump_done_cb_t
| typedef void(* pbl_log_flash_dump_done_cb_t) (bool success) |
Called once a dump finishes.
- Parameters
-
| success | false if the generation does not exist or a message could not be consumed. |
◆ pbl_log_flash_dump_line_cb_t
| typedef bool(* pbl_log_flash_dump_line_cb_t) (uint8_t *message, uint32_t length) |
Called with each stored message of a dumped generation.
- Parameters
-
| message | Binary log message. |
| length | Message length, in bytes. |
- Returns
- true if the message was consumed, false to retry it.
◆ pbl_log_flash_dump()
Dump a log generation, one message per system task callback.
- Parameters
-
| generation | 0 for the current boot, 1 for the previous one, and so on. |
| line_cb | Called with each message. |
| done_cb | Called once the dump finishes, also when the generation does not exist. |
- Returns
- true if the generation exists.
◆ pbl_log_flash_init()
| void pbl_log_flash_init |
( |
void |
| ) |
|
Start a new log generation and enable the flash backend.