Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alias types to Ref #3277

Draft
wants to merge 5 commits into
base: devel
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Ref/RecvBuffApp/RecvBuffApp.fpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module Ref {

type AliasU32 = U32
type BuffRecvType = AliasU32

@ Packet receive status
enum PacketRecvStatus {
PACKET_STATE_NO_PACKETS = 0
@@ -9,7 +12,7 @@ module Ref {

@ Some Packet Statistics
struct PacketStat {
BuffRecv: U32 @< Number of buffers received
BuffRecv: BuffRecvType @< Number of buffers received
BuffErr: U32 @< Number of buffers received with errors
PacketStatus: PacketRecvStatus @< Packet Status
}
8 changes: 6 additions & 2 deletions Ref/SignalGen/Commands.fppi
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@

type FrequencyType = U32
type PhaseType = F32

@ Signal Generator Settings
async command Settings(
Frequency: U32
Frequency: FrequencyType
Amplitude: F32
Phase: F32
Phase: PhaseType
SigType: Ref.SignalType
) \
opcode 0x00
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ fprime-fpp-to-dict==3.0.0a2
fprime-fpp-to-json==3.0.0a2
fprime-fpp-to-xml==3.0.0a2
fprime-fpp-to-layout==3.0.0a2
fprime-gds==3.6.1
fprime-gds==3.6.2a1
fprime-tools==3.6.1
fprime-visual==1.0.2
gcovr==8.2

Unchanged files with check annotations Beta

This class is enclosed in the namespaces, if any, given by the qualified
name of _D_.
For example, a state machine definition whose qualified name is `A.B.M` in FPP
becomes a class `A::B::MStateMachineBase` in C++.

Check notice on line 90 in docs/user-manual/framework/state-machines.md

GitHub Actions / Check Spelling

`Line` matches candidate pattern `\b(?:[0-9a-fA-F]{0,4}:){3,7}[0-9a-fA-F]{0,4}\b` (candidate-pattern)
The base class provides a partial implementation which is completed when
the state machine is [instantiated](#state-machine-instances).
@startuml
abstract class A::B::MStateMachineBase

Check notice on line 3 in docs/img/sm-impl-class-diagram.puml

GitHub Actions / Check Spelling

`Line` matches candidate pattern `\b(?:[0-9a-fA-F]{0,4}:){3,7}[0-9a-fA-F]{0,4}\b` (candidate-pattern)
class CComponentBase::A_B_M
A::B::MStateMachineBase <|-- CComponentBase::A_B_M