Trigger API in firmware

Fixes #117