22 #ifndef ardour_tranzport_control_protocol_h
23 #define ardour_tranzport_control_protocol_h
32 #if !HAVE_TRANZPORT_KERNEL_DRIVER
36 #include <glibmm/threads.h>
150 #if HAVE_TRANZPORT_KERNEL_DRIVER
153 usb_dev_handle*
udev;
205 int read (uint8_t *buf,uint32_t timeout_override = 0);
206 int write (uint8_t* cmd, uint32_t timeout_override = 0);
213 void print (
int row,
int col,
const char* text);
217 #if HAVE_TRANZPORT_KERNEL_DRIVER
225 #if !HAVE_TRANZPORT_KERNEL_DRIVER
257 int lcd_write(uint8_t* cmd, uint32_t timeout_override = 0);
virtual std::string name() const
void lcd_fill(uint8_t fill_char)
int set_state(const XMLNode &)
void button_event_mute(bool pressed, bool shifted)
void button_event_backlight_release(bool shifted)
void button_event_add_release(bool shifted)
void button_event_out_release(bool shifted)
std::bitset< LIGHTS > lights_current
void enter_big_meter_mode()
int light_set(LightID, bool offon=true)
ARDOUR::gain_t gain_fraction
void button_event_play_release(bool shifted)
char screen_pending[2][20]
void button_event_record_press(bool shifted)
uint32_t current_track_id
void show_current_track()
void button_event_loop_release(bool shifted)
void button_event_in_release(bool shifted)
std::bitset< LIGHTS > lights_pending
void show_timecode(samplepos_t where)
void button_event_next_release(bool shifted)
std::bitset< LIGHTS > lights_flash
void lcd_print(int row, int col, const char *text)
void button_event_undo_press(bool shifted)
void button_event_trackmute_press(bool shifted)
void button_event_punch_press(bool shifted)
void button_event_trackright_release(bool shifted)
static const int VENDORID
int lights_write(uint8_t *cmd, uint32_t timeout_override=0)
void button_event_trackmute_release(bool shifted)
void button_event_trackleft_release(bool shifted)
void button_event_undo_release(bool shifted)
std::bitset< ROWS *COLUMNS > screen_invalid
void button_event_stop_press(bool shifted)
void print(int row, int col, const char *text)
int lights_show_recording()
void button_event_stop_release(bool shifted)
bool lcd_damage(int row, int col=0, int length=COLUMNS)
void button_event_fastforward_press(bool shifted)
void button_event_trackright_press(bool shifted)
void set_current_track(ARDOUR::Route *)
int rtpriority_unset(int priority=0)
void button_event_footswitch_release(bool shifted)
void button_event_prev_release(bool shifted)
void button_event_trackrec_press(bool shifted)
int write_noretry(uint8_t *cmd, uint32_t timeout_override=0)
WheelShiftMode wheel_shift_mode
static const int READ_ENDPOINT
void light_validate(LightID light)
void button_event_punch_release(bool shifted)
int open_core(struct usb_device *)
static const int PRODUCTID
ARDOUR::gain_t last_track_gain
void button_event_next_press(bool shifted)
void button_event_play_press(bool shifted)
int rtpriority_set(int priority=52)
void button_event_trackrec_release(bool shifted)
void button_event_tracksolo_release(bool shifted)
void enter_normal_display_mode()
void button_event_rewind_release(bool shifted)
void lcd_print_noretry(int row, int col, const char *text)
void button_event_battery_press(bool shifted)
char last_notify_msg[COLUMNS+1]
WheelIncrement wheel_increment
void print_noretry(int row, int col, const char *text)
XMLNode & get_state() const
static const int WRITE_ENDPOINT
int load_config(char *name="default")
TranzportControlProtocol(ARDOUR::Session &)
Glib::Threads::Mutex update_lock
static const int STATUS_ONLINE
void button_event_backlight_press(bool shifted)
void light_invalidate(LightID light)
void button_event_footswitch_press(bool shifted)
static const int STATUS_OK
static const uint8_t WheelDirectionThreshold
void button_event_fastforward_release(bool shifted)
int write(uint8_t *cmd, uint32_t timeout_override=0)
void show_bbt(samplepos_t where)
uint64_t last_wheel_motion
void button_event_battery_release(bool shifted)
void button_event_in_press(bool shifted)
int lcd_write(uint8_t *cmd, uint32_t timeout_override=0)
void enter_recording_mode()
char screen_current[2][20]
void button_event_out_press(bool shifted)
bool lcd_isdamaged(int row, int col=0, int length=COLUMNS)
std::bitset< LIGHTS > lights_invalid
void button_event_tracksolo_press(bool shifted)
void button_event_record_release(bool shifted)
void notify(const char *msg)
void show_transport_time()
virtual ~TranzportControlProtocol()
void button_event_trackleft_press(bool shifted)
void button_event_loop_press(bool shifted)
void next_wheel_shift_mode()
void button_event_rewind_press(bool shifted)
int save_config(char *name="default")
static void * _monitor_work(void *arg)
void button_event_add_press(bool shifted)
int read(uint8_t *buf, uint32_t timeout_override=0)
void button_event_prev_press(bool shifted)
static const int STATUS_OFFLINE
PBD::PropertyDescriptor< timecnt_t > length
Temporal::samplepos_t samplepos_t