master
Lucjan Bryndza 2014-05-06 22:09:12 +02:00
rodzic 48992ab2cf
commit 2e9b765d1a
2 zmienionych plików z 98 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,46 @@
/*
* =====================================================================================
*
* Filename: stm32adac_device.hpp
*
* Description: STM32 AC/CA implementation
*
* Version: 1.0
* Created: 06.05.2014 21:18:24
* Revision: none
* Compiler: gcc
*
* Author: Lucjan Bryndza (LB), lucck(at)boff(dot)pl
* Organization: BoFF
*
* =====================================================================================
*/
#pragma once
/* ------------------------------------------------------------------ */
#include "libpsk/codec/trx_device_base.hpp"
/* ------------------------------------------------------------------ */
namespace ham {
namespace psk {
/* ------------------------------------------------------------------ */
class stm32adac_device : public trx_device_base {
public:
//! Constructor
stm32adac_device( handler_t evt_callback )
: trx_device_base( evt_callback ) {
}
//! Destructor
virtual ~stm32adac_device() {
}
protected:
//Lock the device
virtual void lock( int id );
virtual void unlock( int id );
virtual bool try_lock( int id );
virtual int join();
// Initialize sound hardware in selected mode
virtual int setup_sound_hardware( trx_device_base::mode m );
};
/* ------------------------------------------------------------------ */
}
}

Wyświetl plik

@ -0,0 +1,52 @@
/*
* =====================================================================================
*
* Filename: st32adac_device.cpp
*
* Description: STM32ADAC device driver implementation
*
* Version: 1.0
* Created: 06.05.2014 21:49:23
* Revision: none
* Compiler: gcc
*
* Author: Lucjan Bryndza (LB), lucck(at)boff(dot)pl
* Organization: BoFF
*
* =====================================================================================
*/
#include "libpsk/port/isix/stm32adac_device.hpp"
/* ------------------------------------------------------------------ */
namespace ham {
namespace psk {
/* ------------------------------------------------------------------ */
//! Lock or unlock selected primitive
void stm32adac_device::lock( int id )
{
}
/* ------------------------------------------------------------------ */
//! Lock or unlock selected primitive
void stm32adac_device::unlock( int id )
{
}
/* ------------------------------------------------------------------ */
//Try lock selected primitive
bool stm32adac_device::try_lock( int id )
{
}
/* ------------------------------------------------------------------ */
//! Initialize and setup sound hardware
int stm32adac_device::setup_sound_hardware( trx_device_base::mode m )
{
}
/* ------------------------------------------------------------------ */
//! Join and wait for finish trx
int stm32adac_device::join()
{
}
/* ------------------------------------------------------------------ */
}}