BM_LoggingConfigTypeDef
结构体与成员名称和 BMAPI SDK 保持一致,便于直接对应头文件与示例代码。
BM_LoggingConfigTypeDef data structure.
Members
Section titled “Members”| Member | Declaration | Description |
|---|---|---|
version |
uint8_t version |
Currently must be set to 0x01 |
mode |
uint8_t mode |
Logging mode, see BM_StorageModeTypeDef for details |
format |
uint8_t format |
Log file format: See BM_StorageFormatTypeDef for details. |
channels |
uint16_t channels |
A bitmask of TX channels, only channels with ‘1’ are allowed as logging source channel |
direction |
uint8_t direction |
Logging direction, see BM_StorageDirectionTypeDef for details |
path |
BM_PathSpecTypeDef path |
Pathspec to find available files, see BM_StoragePathModeTypeDef for details. |
starttrigger |
BM_EventTriggerTypeDef starttrigger |
Trigger condition, recording starts automatically when it is met, only valid if mode=2 |
stoptrigger |
BM_EventTriggerTypeDef stoptrigger |
Trigger condition, recording starts automatically when it is met, only valid if mode=2 |
createNewFileOnStart |
uint8_t createNewFileOnStart |
< For FIXED PATH mode: Remove all data in existing logging file on logging startup/trigger, otherwise append to existing file |
< For INDEX PATH mode: Increase file index and create new file on logging startup/trigger, otherwise continue using existing file |
| overwriteOldFileOnFull | uint8_t overwriteOldFileOnFull | Enable overwriting, e.g. Overwrite 000.bbd if failed to create 003.bbd since disk is full |
| nfiles | uint16_t nfiles | Max number of files, file name will wrap around on upper limit |
| nmessagesPerFile | uint32_t nmessagesPerFile | Max number of messages per log file (currently unsupported) |
| nbytesPerFile | uint32_t nbytesPerFile | Max number of bytes per log file |
| nsecondsPerFile | uint32_t nsecondsPerFile | Max number of seconds per log file |
| segmentation | } segmentation | Log File segmentation criteria, OR logic |
This data-structure reference follows the current BUSMUST BMAPI SDK.