mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
This adds an assembler for the BitScrambler assembly language, plus unit tests for it. It also adds the loopback driver, which can do BitScrambler operations on memory-to-memory transfers. Documentation is also included.
24 lines
681 B
C
24 lines
681 B
C
/*
|
|
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
//This file contains private functions for interop between bitscrambler.c
|
|
//and bitscrambler_loopback.c.
|
|
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include "soc/bitscrambler_peri_select.h"
|
|
#include "hal/bitscrambler_ll.h"
|
|
|
|
typedef struct bitscrambler_t bitscrambler_t;
|
|
|
|
struct bitscrambler_t {
|
|
bitscrambler_config_t cfg;
|
|
bitscrambler_dev_t *hw;
|
|
bool loopback; //true if this is a loopback bitscrambler, i.e. the RX
|
|
//channel is also claimed
|
|
};
|
|
|
|
esp_err_t bitscrambler_init_loopback(bitscrambler_handle_t handle, const bitscrambler_config_t *config);
|