mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
80 lines
1.9 KiB
C
80 lines
1.9 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
// The HAL layer for PAU (Power Assist Unit)
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "soc/soc_caps.h"
|
|
#include "hal/pau_ll.h"
|
|
#include "hal/pau_types.h"
|
|
|
|
typedef struct {
|
|
pau_dev_t *dev;
|
|
} pau_hal_context_t;
|
|
|
|
/**
|
|
* @brief Set regdma entry link address
|
|
*
|
|
* @param hal regdma hal context
|
|
* @param link_addr entry link address value
|
|
*/
|
|
void pau_hal_set_regdma_entry_link_addr(pau_hal_context_t *hal, pau_regdma_link_addr_t *link_addr);
|
|
|
|
/**
|
|
* @brief Set regdma modem link address
|
|
*
|
|
* @param hal regdma hal context
|
|
* @param link_addr modem link address value
|
|
*/
|
|
#define pau_hal_set_regdma_modem_link_addr(hal, addr) pau_ll_set_regdma_wifimac_link_addr((hal)->dev, (addr))
|
|
|
|
/**
|
|
* @brief Start transmission on regdma modem link
|
|
*
|
|
* @param hal regdma hal context
|
|
* @param backup_or_restore false:restore true:backup
|
|
*/
|
|
void pau_hal_start_regdma_modem_link(pau_hal_context_t *hal, bool backup_or_restore);
|
|
|
|
/**
|
|
* @brief Stop transmission on regdma modem link
|
|
*
|
|
* @param hal regdma hal context
|
|
*/
|
|
void pau_hal_stop_regdma_modem_link(pau_hal_context_t *hal);
|
|
|
|
/**
|
|
* @brief Set regdma extra link address
|
|
*
|
|
* @param hal regdma hal context
|
|
* @param link_addr extra link address value
|
|
*/
|
|
#define pau_hal_set_regdma_extra_link_addr(hal, addr) pau_ll_set_regdma_link3_addr(hal->dev, (addr))
|
|
|
|
/**
|
|
* @brief Start transmission on regdma extra link
|
|
*
|
|
* @param hal regdma hal context
|
|
* @param backup_or_restore false:restore true:backup
|
|
*/
|
|
void pau_hal_start_regdma_extra_link(pau_hal_context_t *hal, bool backup_or_restore);
|
|
|
|
/**
|
|
* @brief Stop transmission on regdma extra link
|
|
*
|
|
* @param hal regdma hal context
|
|
*/
|
|
void pau_hal_stop_regdma_extra_link(pau_hal_context_t *hal);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|