Module esp_dac
Data Types
dac_rsrc()
dac_rsrc() = {$dac, Resource::binary(), Ref::reference()}
oneshot_channel_opts()
oneshot_channel_opts() = [{chan_id, 0 | 1}]
Function Index
| new_channel/2 | |
| oneshot_del_channel/1 | |
| oneshot_new_channel_p/1 | |
| oneshot_output_voltage/2 |
Function Details
new_channel/2
new_channel(X1::oneshot, Opts::oneshot_channel_opts()) -> {ok, Channel::dac_rsrc()} | {error, Reason::term()}
oneshot_del_channel/1
oneshot_del_channel(Channel::dac_rsrc()) -> ok | {error, Reason::term()}
oneshot_new_channel_p/1
oneshot_new_channel_p(_chan::0 | 1) -> {ok, Channel::dac_rsrc()} | {error, Reason::term()}
oneshot_output_voltage/2
oneshot_output_voltage(Channel::dac_rsrc(), Level::0..255) -> ok | {error, Reason::term()}