Skip to content

Commit

Permalink
embed: add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vsergeev committed Dec 13, 2019
1 parent 5864075 commit a192e2d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions embed/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Embedding LuaRadio

The entirety of the LuaRadio framework and the LuaJIT interpreter can be
packaged into a single library that exports a simple C API. The API can be used
to create a LuaRadio context, load a LuaRadio script with a top-level flow
graph, and control the top-level flow graph (start, status, wait, stop). This
library, `libluaradio`, can then be dynamically or statically linked into an
application to add dedicated or scriptable signal processing engine.

The [fm-radio](examples/fm-radio.c) example is a standalone command-line FM
broadcast radio receiver. The [rds-timesync](examples/rds-timesync.c) is a
standalone command-line tool that syncs the system time and date with an
RDS-enabled FM radio station.

See the [Embedding LuaRadio](../docs/4.embedding-luaradio.md) documentation for
more information.

## Building

Build `libluaradio`, unit tests, and examples with:

```
make
```

Run unit tests with:

```
make runtests
```

## File Structure

* [Makefile](Makefile) - C library Makefile
* [luaradio.c](luaradio.c) - C API implementation
* [luaradio.h](luaradio.h) - C API header
* [examples/](examples) - C API examples
* [tests/](tests) - C API unit tests

0 comments on commit a192e2d

Please sign in to comment.