Raptor:Data Logging Read: Difference between revisions
(→Inputs) |
No edit summary |
||
Line 6: | Line 6: | ||
== Description == | == Description == | ||
<p>This block | <p>This block works with onboard FLASH datalogging memory (if available) on the selected ECU target. This block will read out a desired size of data from a data log memory, given the address. The read (size) must not cross a sector boundary (e.g. 16kb), multiple reads should be used in such a case</p> | ||
<p>Models configured for targets which do not support this feature will print an error message to diagnostic output on model update or compilation.</p> | |||
<p>The address input will be used as an offset to the base address of the datalog flash memory region of the controller automatically. For example, if the datalog flash memory region of the targeted controller starts at address 0x80000000, providing 0 to the address input of the block will read N bytes starting from address 0x80000000, where N is the value of the Size internal block parameter.</p> | |||
== Inputs == | == Inputs == | ||
Line 17: | Line 21: | ||
! Address | ! Address | ||
| uint32 | | uint32 | ||
| | | Address (offset from base address of datalog flash region) at which to begin the read. | ||
|} | |} | ||
Line 28: | Line 32: | ||
|- | |- | ||
! Status | ! Status | ||
| | | uint8 | ||
| | | Status of the operation: 0 - Failure, 1 - Success | ||
|- | |- | ||
! Data | ! Data | ||
| uint8 | | uint8 | ||
| | | Array of data that has been read. | ||
|} | |} | ||
Line 45: | Line 49: | ||
! Size | ! Size | ||
| Number | | Number | ||
| | | The size of the data in bytes. | ||
|} | |} |
Latest revision as of 13:34, 13 September 2023
Return to the main Raptor page
Description
This block works with onboard FLASH datalogging memory (if available) on the selected ECU target. This block will read out a desired size of data from a data log memory, given the address. The read (size) must not cross a sector boundary (e.g. 16kb), multiple reads should be used in such a case
Models configured for targets which do not support this feature will print an error message to diagnostic output on model update or compilation.
The address input will be used as an offset to the base address of the datalog flash memory region of the controller automatically. For example, if the datalog flash memory region of the targeted controller starts at address 0x80000000, providing 0 to the address input of the block will read N bytes starting from address 0x80000000, where N is the value of the Size internal block parameter.
Inputs
Input | Type | Description |
---|---|---|
Address | uint32 | Address (offset from base address of datalog flash region) at which to begin the read. |
Outputs
Output | Type | Description |
---|---|---|
Status | uint8 | Status of the operation: 0 - Failure, 1 - Success |
Data | uint8 | Array of data that has been read. |
Parameters
Parameter | Type | Description |
---|---|---|
Size | Number | The size of the data in bytes. |