48 lines
1.6 KiB
C
48 lines
1.6 KiB
C
/* -*- mode: c; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4; coding: utf-8 -*- */
|
|
/************************************************************************************
|
|
** **
|
|
** mcHF QRP Transceiver **
|
|
** K Atanassov - M0NKA 2014 **
|
|
** **
|
|
**---------------------------------------------------------------------------------**
|
|
** **
|
|
** File name: **
|
|
** Description: **
|
|
** Last Modified: **
|
|
** Licence: GNU GPLv3 **
|
|
************************************************************************************/
|
|
|
|
#ifndef __CAT_DRIVER_H
|
|
#define __CAT_DRIVER_H
|
|
|
|
#include "uhsdr_types.h"
|
|
|
|
typedef enum
|
|
{
|
|
CAT_DISCONNECTED = 0,
|
|
CAT_CONNECTED
|
|
} CatInterfaceState;
|
|
|
|
typedef enum
|
|
{
|
|
UNKNOWN = 0,
|
|
FT817 = 1
|
|
} CatInterfaceProtocol;
|
|
|
|
|
|
// Exports
|
|
|
|
CatInterfaceState CatDriver_GetInterfaceState(void);
|
|
|
|
int CatDriver_InterfaceBufferAddData(uint8_t c);
|
|
|
|
void CatDriver_HandleProtocol(void);
|
|
|
|
bool CatDriver_CloneOutStart(void);
|
|
bool CatDriver_CloneInStart(void);
|
|
|
|
bool CatDriver_CWKeyPressed(void);
|
|
bool CatDriver_CatPttActive(void);
|
|
|
|
#endif
|