blob: 6838b9bac14eb45be22fedeb72e48b0d030efd16 [file] [log] [blame]
/*
*
* Copyright (c) 2022 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <stdbool.h>
#include "FreeRTOS.h"
#include "sl_wfx_constants.h"
#include "task.h"
typedef struct
{
sl_wfx_send_frame_req_t * frame;
uint32_t data_length;
sl_wfx_interface_t interface;
uint8_t priority;
} wfx_frame_q_item;
extern wfx_frame_q_item wfxtask_tx_frame;
extern TaskHandle_t wfx_bus_task_handle;
#ifdef __cplusplus
extern "C" {
#endif
/****************************************************************************
* @fn void wfx_bus_start(void)
* @brief
* Start wfx bus communication task.
*****************************************************************************/
void wfx_bus_start(void);
/****************************************************************************
* @fn bool wfx_bus_is_receive_processing(void)
* @brief
* Returns status of wfx receive frames.
*****************************************************************************/
bool wfx_bus_is_receive_processing(void);
#ifdef __cplusplus
}
#endif