mirror of
https://github.com/m-labs/artiq.git
synced 2025-01-16 13:46:42 +08:00
Robert Jordens
8adef12781
* remove rt2wb_output * remove ttl_*() ttl.c ttl.h * use rtio_output() and rtio_input_timestamp() * adapt coredevice/compiler layer * adapt bridge to not artiq_raise_from_c()
25 lines
810 B
C
25 lines
810 B
C
#ifndef __RTIO_H
|
|
#define __RTIO_H
|
|
|
|
#include <stdarg.h>
|
|
#include <generated/csr.h>
|
|
#include "artiq_personality.h"
|
|
|
|
#define RTIO_O_STATUS_FULL 1
|
|
#define RTIO_O_STATUS_UNDERFLOW 2
|
|
#define RTIO_O_STATUS_SEQUENCE_ERROR 4
|
|
#define RTIO_O_STATUS_COLLISION_ERROR 8
|
|
#define RTIO_I_STATUS_EMPTY 1
|
|
#define RTIO_I_STATUS_OVERFLOW 2
|
|
|
|
void rtio_init(void);
|
|
long long int rtio_get_counter(void);
|
|
void rtio_process_exceptional_status(int status, long long int timestamp, int channel);
|
|
void rtio_log(long long int timestamp, const char *format, ...);
|
|
void rtio_log_va(long long int timestamp, const char *format, va_list args);
|
|
void rtio_output(long long int timestamp, int channel, unsigned int address,
|
|
unsigned int data);
|
|
long long int rtio_input_timestamp(long long int timeout, int channel);
|
|
|
|
#endif /* __RTIO_H */
|