|
K-FSW ec10f94
Modular flight software on Zephyr, for small satellites
|
Data Structures | |
| struct | kfsw_fbo_status |
Functions | |
| int | kfsw_fbo_init (void) |
| int | kfsw_fbo_run (const char *name) |
| int | kfsw_fbo_stop (void) |
| int | kfsw_fbo_get_status (struct kfsw_fbo_status *status) |
Variables | |
| const struct kfsw_param_definition_set | kfsw_fbo_param_definitions |
Run a list of commands from a file.
Every line is a normal command, and there are no loops or jumps.
| int kfsw_fbo_get_status | ( | struct kfsw_fbo_status * | status | ) |
#include <fbo.h>
Read procedure state and counters.
| [out] | status | Destination. |
| 0 | Written. |
| -EINVAL | status is NULL. |
| int kfsw_fbo_init | ( | void | ) |
#include <fbo.h>
Initialize the service.
| 0 | Ready, or already initialized. |
| int kfsw_fbo_run | ( | const char * | name | ) |
#include <fbo.h>
Start a procedure.
Returns once the run is accepted; the procedure runs on the service thread. Follow it with kfsw_fbo_get_status() or the event record.
| name | File under the procedure directory, without a path. |
| 0 | The run was accepted. |
| -EINVAL | name is NULL, empty, too long, or contains a path. |
| -EACCES | The service is not initialized. |
| -EBUSY | A procedure is already running. |
| -ENOENT | No such procedure. |
| -ENODEV | There is no storage. |
| -EISDIR | The name refers to a directory. |
| -EFBIG | The file exceeds CONFIG_KFSW_FBO_BYTES_MAX. |
| int kfsw_fbo_stop | ( | void | ) |
#include <fbo.h>
Ask a running procedure to stop.
Wakes a wait immediately. Other command handlers finish before the stop takes effect. Stopping while idle has no effect on the next run.
| 0 | A stop was requested, or nothing was running. |
|
extern |
#include <fbo.h>
Parameter table of file based operations.