Subversion Repositories svn.mios32

Rev

Rev 1865 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

// $Id: seq_tpd.h 2611 2018-12-18 21:58:09Z tk $
/*
 * Header file for relative track position matrix LED display (by hawkeye)
 *
 * ==========================================================================
 *
 *  Copyright (C) 2008 Thorsten Klose (tk@midibox.org)
 *  Licensed for personal non-commercial use only.
 *  All other rights reserved.
 *
 * ==========================================================================
 */


#ifndef _SEQ_TPD_H
#define _SEQ_TPD_H


/////////////////////////////////////////////////////////////////////////////
// Global definitions
/////////////////////////////////////////////////////////////////////////////

typedef enum {
  SEQ_TPD_Mode_PosAndTrack = 0,
  SEQ_TPD_Mode_RotatedPosAndTrack,
  SEQ_TPD_Mode_MeterAndPos,
  SEQ_TPD_Mode_RotatedMeterAndPos,
  SEQ_TPD_Mode_DotMeterAndPos,
  SEQ_TPD_Mode_RotatedDotMeterAndPos,
  SEQ_TPD_Mode_Logo,
  SEQ_TPD_Mode_LogoWithBeat,
  SEQ_TPD_Mode_BPM,
  SEQ_TPD_Mode_BPM_WithBeat,
} seq_tpd_mode_t;

#define SEQ_TPD_NUM_MODES 10 // for seq_ui_opt.c


/////////////////////////////////////////////////////////////////////////////
// Global functions
/////////////////////////////////////////////////////////////////////////////

extern s32 SEQ_TPD_Init(u32 mode);

extern s32 SEQ_TPD_ModeSet(seq_tpd_mode_t mode);
extern seq_tpd_mode_t SEQ_TPD_ModeGet(void);

extern s32 SEQ_TPD_PrintString(char *str);

extern s32 SEQ_TPD_LED_Update(void);

extern s32 SEQ_TPD_Handler(void);

extern s32 SEQ_TPD_LogoSet(u8 ix, u16 pattern);
extern s32 SEQ_TPD_LogoGet(u8 ix);

#endif