XCORE SDK
XCORE Software Development Kit
|
Frame transmitter which transmits frame over a channel. More...
#include <OutputHandler.hpp>
Public Member Functions | |
ChannelFrameTransmitter () | |
Construct a ChannelFrameTransmitter . More... | |
ChannelFrameTransmitter (chanend_t c_frame_out) | |
Construct a ChannelFrameTransmitter . More... | |
void | SetChannel (chanend_t c_frame_out) |
Set channel used for frame transfers. More... | |
chanend_t | GetChannel () |
Get channel used for frame transfers. More... | |
void | OutputFrame (int32_t frame[MIC_COUNT][SAMPLE_COUNT]) |
Transmit the specified frame. More... | |
Frame transmitter which transmits frame over a channel.
When using this frame transmitter, frames are transmitted over a channel using the frame transfer API in mic_array/frame_transfer.h
.
Usually, a call to ma_frame_rx_s32()
(with the other end of c_frame_out
as argument) should be used to receive the frame on another thread.
Frames can be transmitted between tiles using this class.
MIC_COUNT | Number of audio channels in each frame. |
SAMPLE_COUNT | Number of samples per frame. |
|
inline |
Construct a ChannelFrameTransmitter
.
If this constructor is used, SetChannel()
must be used to configure the channel over which frames are transmitted prior to any calls to OutputFrame()
.
|
inline |
Construct a ChannelFrameTransmitter
.
c_frame_out | Channel over which frames are transmitted. |
chanend_t mic_array::ChannelFrameTransmitter< MIC_COUNT, SAMPLE_COUNT >::GetChannel |
Get channel used for frame transfers.
void mic_array::ChannelFrameTransmitter< MIC_COUNT, SAMPLE_COUNT >::OutputFrame | ( | int32_t | frame[MIC_COUNT][SAMPLE_COUNT] | ) |
Transmit the specified frame.
frame | Frame to be transmitted. |
void mic_array::ChannelFrameTransmitter< MIC_COUNT, SAMPLE_COUNT >::SetChannel | ( | chanend_t | c_frame_out | ) |
Set channel used for frame transfers.
c_frame_out | Channel to be used for frame transfers. |