You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to have a tool that could recursively search for all port definitions from a directory and then report them in some TBD user friendly format.
I have a python script that uses a regex to produce a CSV with a summary of ports - but that's not ideal to be using regexp for this since FPP an interpreted language so there must be a cleaner approach.
File,Port Name,Port Args,Return Value
./lib/fprime/Drv/ByteStreamDriverModel/ByteStreamDriverModel.fpp,ByteStreamSend, ref sendBuffer: Fw.Buffer @< Data to send ,SendStatus
./lib/fprime/Drv/ByteStreamDriverModel/ByteStreamDriverModel.fpp,ByteStreamRecv, ref recvBuffer: Fw.Buffer recvStatus: RecvStatus ,
./lib/fprime/Drv/ByteStreamDriverModel/ByteStreamDriverModel.fpp,ByteStreamPoll, ref pollBuffer: Fw.Buffer ,PollStatus
Rationale
Ports should be defined in fpp files in Ports/ - however a project that includes multiple libraries can have multiple Ports/ subdirectories and some components define the ports in their fpp files rather than in a separate file. It'd be useful to have a tool that lets you see everything defined and where those things are defined
The text was updated successfully, but these errors were encountered:
It may be possible to use a combination of find (to list all the .fpp files in a directory recursively), fpp-to-json, and an additional processing script to convert the json to a format for your use.
Feature Description
It would be useful to have a tool that could recursively search for all port definitions from a directory and then report them in some TBD user friendly format.
I have a python script that uses a regex to produce a CSV with a summary of ports - but that's not ideal to be using regexp for this since FPP an interpreted language so there must be a cleaner approach.
Rationale
Ports should be defined in fpp files in Ports/ - however a project that includes multiple libraries can have multiple Ports/ subdirectories and some components define the ports in their fpp files rather than in a separate file. It'd be useful to have a tool that lets you see everything defined and where those things are defined
The text was updated successfully, but these errors were encountered: