Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multipass
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
derf
multipass
Commits
37b9b0ae
Commit
37b9b0ae
authored
5 years ago
by
Daniel Friesel
Browse files
Options
Downloads
Patches
Plain Diff
add partial nrf24l01 dfa model
parent
bc3745b6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
model/driver/nrf24l01.dfa
+79
-0
79 additions, 0 deletions
model/driver/nrf24l01.dfa
with
79 additions
and
0 deletions
model/driver/nrf24l01.dfa
0 → 100644
+
79
−
0
View file @
37b9b0ae
codegen:
instance: nrf24l01
includes: ['driver/nrf24l01.h']
flags: ['drivers=nrf24l01', 'arch_drivers=spi_b']
parameters:
- auto_ack!
- payload_size
- dynamic_payloads_enabled!
- max_retry_count
- retry_count
- retry_delay
- retry_enabled!
- tx_power
- datarate
- channel
states:
- UNINITIALIZED
- POWEROFF
- STANDBY1
- TX
- RX
transition:
setup:
src: [UNINITIALIZED, POWEROFF, STANDBY1]
dst: STANDBY1
set_param:
retry_delay: 5
retry_count: 10
datarate: RF24_1MBPS
tx_power: RF24_PA_MAX
dynamic_payloads_enabled: 0
channel: 76
setAutoAck:
src: [STANDBY1]
dst: STANDBY1
arguments:
- name: enable
values: [0, 1]
parameter: auto_ack
setPALevel:
src: [STANDBY1]
dst: STANDBY1
arguments:
- name: palevel
values: ['Nrf24l01::RF24_PA_MIN', 'Nrf24l01::RF24_PA_LOW', 'Nrf24l01::RF24_PA_HIGH', 'Nrf24l01::RF24_PA_MAX']
parameter: tx_power
startListening:
src: [STANDBY1]
dst: RX
stopListening:
src: [RX]
dst: STANDBY1
setRetries:
src: [STANDBY1]
dst: STANDBY1
arguments:
- name: delay
values: [0, 5, 10, 15]
parameter: retry_delay
- name: count
values: [0, 5, 10, 15]
parameter: max_retry_count
write:
src: [STANDBY1]
dst: STANDBY1
arguments:
- name: buf
values: ['"foo"', '"foo"', '"foofoofoo"', '"foofoofoo"', '"123456789012345678901234567890"', '"123456789012345678901234567890"']
- name: len
values: [3, 3, 9, 9, 30, 30]
parameter: payload_size
- name: await_ack
values: [0, 1, 0, 1, 0, 1]
- name: blocking
values: [1, 1, 1, 1, 1, 1]
argument_combination: zip
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