Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
R2X Ignition
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Avionics
Software Development
Old Rockets
R2X Ignition
Commits
8dae46ed
Commit
8dae46ed
authored
6 years ago
by
Alvise de'Faveri
Browse files
Options
Downloads
Patches
Plain Diff
Added the definition of a common interface between the two micros
parent
4a5c6a62
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/IgnitionInterface.h
+25
-0
25 additions, 0 deletions
code/IgnitionInterface.h
with
25 additions
and
0 deletions
code/IgnitionInterface.h
0 → 100644
+
25
−
0
View file @
8dae46ed
#pragma once
enum
class
AtmelCmd
{
STATUS
=
1
,
STATUS_RESPONSE
,
LAUNCH
,
LAUNCH_RESPONSE
,
ABORT
};
inline
uint8_t
atmelCmdToInt
(
AtmelCmd
cmd
)
{
return
static_cast
<
uint8_t
>
(
cmd
);
}
struct
__attribute__
((
packed
))
StatusResponse
{
uint8_t
abort_cmd
:
1
;
// abort after explicit command
uint8_t
abort_timeout
:
1
;
// abort after timeout
uint8_t
abort_wrong_code
:
1
;
// abort after wrong launch code recieved
uint8_t
launch_done
:
1
;
};
const
uint8_t
launch_response_good
=
0x55
;
const
uint8_t
launch_response_bad
=
0
;
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