diff --git a/libpsk/include/libpsk/port/isix/stm32adac_device.hpp b/libpsk/include/libpsk/port/isix/stm32adac_device.hpp new file mode 100644 index 0000000..dc56619 --- /dev/null +++ b/libpsk/include/libpsk/port/isix/stm32adac_device.hpp @@ -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 ); +}; +/* ------------------------------------------------------------------ */ +} +} diff --git a/libpsk/src/port/isix/st32adac_device.cpp b/libpsk/src/port/isix/st32adac_device.cpp new file mode 100644 index 0000000..910a7e3 --- /dev/null +++ b/libpsk/src/port/isix/st32adac_device.cpp @@ -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() +{ + +} +/* ------------------------------------------------------------------ */ +}}