42 lines
2.1 KiB
C
42 lines
2.1 KiB
C
/* Copyright (c) 2023 Peter McGoron <code@mcgoron.com>
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted, provided that the above
|
|
copyright notice and this permission notice appear in all copies.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
|
|
#pragma once
|
|
|
|
creole_word upsilon_get_adc(creole_word adc);
|
|
creole_word upsilon_get_dac(creole_word adc);
|
|
creole_word upsilon_write_dac(creole_word dac, creole_word val);
|
|
creole_word upsilon_sleep(creole_word usec);
|
|
creole_word upsilon_control_loop_read(creole_word *high_reg,
|
|
creole_word *low_reg,
|
|
creole_word code);
|
|
creole_word upsilon_control_loop_write(creole_word high_val,
|
|
creole_word low_val,
|
|
creole_word code);
|
|
creole_word upsilon_load_waveform(struct creole_env *env, creole_word slot,
|
|
creole_word db);
|
|
creole_word upsilon_arm_waveform(creole_word slot, creole_word dac,
|
|
creole_word wait);
|
|
creole_word upsilon_disarm_waveform(creole_word slot);
|
|
creole_word upsilon_sendval(creole_word num);
|
|
creole_word upsilon_senddat(struct creole_env *env, creole_word db);
|
|
|
|
creole_word upsilon_take_adc(creole_word slot, creole_word timeout);
|
|
creole_word upsilon_release_adc(creole_word slot);
|
|
creole_word upsilon_take_dac(creole_word slot, creole_word timeout);
|
|
creole_word upsilon_release_dac(creole_word slot);
|
|
creole_word upsilon_take_wf(creole_word slot, creole_word timeout);
|
|
creole_word upsilon_release_wf(creole_word slot);
|
|
creole_word upsilon_take_cloop(creole_word timeout);
|
|
creole_word upsilon_release_cloop(void);
|