Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ECSS Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AcubeSat-OBC
ECSS Services
Commits
42949cf0
Unverified
Commit
42949cf0
authored
6 years ago
by
Dimitrios Stoupis
Browse files
Options
Downloads
Patches
Plain Diff
Fix build errors
parent
8c07ce39
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Services/MemMangService.cpp
+9
-8
9 additions, 8 deletions
src/Services/MemMangService.cpp
with
9 additions
and
8 deletions
src/Services/MemMangService.cpp
+
9
−
8
View file @
42949cf0
...
...
@@ -12,15 +12,16 @@ MemoryManagementService::RawDataMemoryManagement::RawDataMemoryManagement(
// Function declarations for the raw data memory management subservice
void
MemoryManagementService
::
RawDataMemoryManagement
::
loadRawData
(
Message
&
request
)
{
/*
void MemoryManagementService::RawDataMemoryManagement::loadRawData(Message &request) {
}
}
*/
void
MemoryManagementService
::
RawDataMemoryManagement
::
dumpRawData
(
Message
&
request
)
{
Message
report
=
mainService
->
createTM
(
6
);
// Create the report message object of telemetry message subtype 6
// Create the report message object of telemetry message subtype 6
Message
report
=
mainService
->
createTM
(
6
);
uint8_t
iterationCount
=
0
;
// Get the iteration count
uint8_t
*
readData
=
nullptr
;
// Pointer to store the data read from the memory
//
uint8_t *readData = nullptr; // Pointer to store the data read from the memory
uint16_t
readLength
=
0
;
// Data length to read (updated for each new iteration)
uint32_t
startAddress
=
0
;
// Start address for the memory read (updated in each new iteration)
MemoryManagementService
::
MemoryID
meId
;
...
...
@@ -30,11 +31,11 @@ void MemoryManagementService::RawDataMemoryManagement::dumpRawData(Message &requ
startAddress
=
request
.
readUint32
();
readLength
=
request
.
readUint16
();
readData
=
(
uint8_t
*
)
malloc
(
static_cast
<
std
::
size_t
>
(
readLength
+
1
));
/*
readData = (uint8_t *)malloc(static_cast<std::size_t >(readLength + 1));
for (std::size_t i = 0; i < readLength; i++) {
readData[i] = *(uint8_t *)(startAddress + i);
}
readData
[
readLength
]
=
'\0'
;
readData[readLength] = '\0';
*/
report
.
appendUint8
(
iterationCount
);
// Iteration count
report
.
appendUint32
(
startAddress
);
// Start address
...
...
@@ -47,6 +48,6 @@ void MemoryManagementService::RawDataMemoryManagement::dumpRawData(Message &requ
mainService
->
storeMessage
(
report
);
}
void
MemoryManagementService
::
RawDataMemoryManagement
::
dumpedRawDataReport
()
{
/*
void MemoryManagementService::RawDataMemoryManagement::dumpedRawDataReport() {
}
\ No newline at end of file
}*/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment