XCORE SDK
XCORE Software Development Kit
frame_transfer.h
1 // Copyright 2022 XMOS LIMITED.
2 // This Software is subject to the terms of the XMOS Public Licence: Version 1.
3 #pragma once
4 
5 #include "api.h"
6 #include "etc/xcore_compat.h"
7 
8 #include <stdint.h>
9 
14 C_API_START
15 
44 MA_C_API
45 void ma_frame_tx(
46  const chanend_t c_frame_out,
47  const int32_t frame[],
48  const unsigned channel_count,
49  const unsigned sample_count);
50 
51 
80 MA_C_API
81 void ma_frame_rx(
82  int32_t frame[],
83  const chanend_t c_frame_in,
84  const unsigned channel_count,
85  const unsigned sample_count);
86 
87 
122 MA_C_API
123 void ma_frame_rx_transpose(
124  int32_t frame[],
125  const chanend_t c_frame_in,
126  const unsigned channel_count,
127  const unsigned sample_count);
128 
129 
130 C_API_END