Paul Batchelorimporta901d566 years agoHistory
57 lines · 1.3 KB · Lua
RawDownload
sptbl["count"] = {     files = {        module = "count.c",        header = "count.h",        example = "ex_count.c",    },     func = {        create = "sp_count_create",        destroy = "sp_count_destroy",        init = "sp_count_init",        compute = "sp_count_compute",    },     params = {        optional = {            {                name = "count",                type = "SPFLOAT",                description = "Number to count up to (count - 1). Decimal points will be truncated.",                default = 4            },            {                name = "mode",                type = "SPFLOAT",                description = "Counting mode. 0 = wrap-around, 1 = count up to N -1, then stop and spit out -1",                default = 0            },        },    },     modtype = "module",     description = [[Trigger-based fixed counter     The signal output will count from 0 to [N-1], and thenrepeat itself. Count will start when it has been triggered, otherwise it will be -1.]],     ninputs = 1,    noutputs = 1,     inputs = {        {            name = "trig",            description = "When non-zero, this value will increment."        },    },     outputs = {        {            name = "out",            description = "Signal output."        },    } }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t