Skip to content

Commit a80416f

Browse files
Kamil Gaworcarlescufi
authored andcommitted
bluetooth: controller: Align the Openisa test ll API
Alignes the Openisa ll_test_tx and ll_test_rx functions with the new test API. Signed-off-by: Kamil Gawor <[email protected]>
1 parent 5db0302 commit a80416f

File tree

1 file changed

+22
-6
lines changed
  • subsys/bluetooth/controller/ll_sw/openisa/lll

1 file changed

+22
-6
lines changed

subsys/bluetooth/controller/ll_sw/openisa/lll/lll_test.c

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static void isr_rx(void *param)
158158
}
159159
}
160160

161-
static uint32_t init(uint8_t chan, uint8_t phy, void (*isr)(void *))
161+
static uint8_t init(uint8_t chan, uint8_t phy, void (*isr)(void *))
162162
{
163163
int err;
164164

@@ -198,12 +198,20 @@ static uint32_t init(uint8_t chan, uint8_t phy, void (*isr)(void *))
198198
return 0;
199199
}
200200

201-
uint32_t ll_test_tx(uint8_t chan, uint8_t len, uint8_t type, uint8_t phy)
201+
uint8_t ll_test_tx(uint8_t chan, uint8_t len, uint8_t type, uint8_t phy,
202+
uint8_t cte_len, uint8_t cte_type, uint8_t switch_pattern_len,
203+
const uint8_t *ant_id, int8_t tx_power)
202204
{
203205
uint32_t start_us;
204206
uint8_t *payload;
205207
uint8_t *pdu;
206-
uint32_t err;
208+
uint8_t err;
209+
210+
ARG_UNUSED(cte_len);
211+
ARG_UNUSED(cte_type);
212+
ARG_UNUSED(switch_pattern_len);
213+
ARG_UNUSED(ant_id);
214+
ARG_UNUSED(tx_power);
207215

208216
if ((type > 0x07) || !phy || (phy > 0x04)) {
209217
return 1;
@@ -277,14 +285,22 @@ uint32_t ll_test_tx(uint8_t chan, uint8_t len, uint8_t type, uint8_t phy)
277285
return 0;
278286
}
279287

280-
uint32_t ll_test_rx(uint8_t chan, uint8_t phy, uint8_t mod_idx)
288+
uint8_t ll_test_rx(uint8_t chan, uint8_t phy, uint8_t mod_idx, uint8_t expected_cte_len,
289+
uint8_t expected_cte_type, uint8_t slot_duration, uint8_t switch_pattern_len,
290+
const uint8_t *ant_ids)
281291
{
282-
uint32_t err;
292+
uint8_t err;
283293

284294
if (!phy || (phy > 0x03)) {
285295
return 1;
286296
}
287297

298+
ARG_UNUSED(expected_cte_len);
299+
ARG_UNUSED(expected_cte_type);
300+
ARG_UNUSED(slot_duration);
301+
ARG_UNUSED(switch_pattern_len);
302+
ARG_UNUSED(ant_ids);
303+
288304
err = init(chan, phy, isr_rx);
289305
if (err) {
290306
return err;
@@ -303,7 +319,7 @@ uint32_t ll_test_rx(uint8_t chan, uint8_t phy, uint8_t mod_idx)
303319
return 0;
304320
}
305321

306-
uint32_t ll_test_end(uint16_t *num_rx)
322+
uint8_t ll_test_end(uint16_t *num_rx)
307323
{
308324
int err;
309325
uint8_t ack;

0 commit comments

Comments
 (0)