Files
kunlun/plc/halmac/hw3/rf_inc/mac_rf_timer.h
2024-09-28 14:24:04 +08:00

90 lines
3.0 KiB
C

/****************************************************************************
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
be copied by any method or incorporated into another program without
the express written consent of Aerospace C.Power. This Information or any portion
thereof remains the property of Aerospace C.Power. The Information contained herein
is believed to be accurate and Aerospace C.Power assumes no responsibility or
liability for its use in any way and conveys no license or title under
any patent or copyright and makes no representation or warranty that this
Information is free from patent or copyright infringement.
****************************************************************************/
#ifndef __MAC_RF_TIMER_H__
#define __MAC_RF_TIMER_H__
/* os shim includes */
#include "os_types.h"
#ifdef __cplusplus
extern "C" {
#endif
/* define max time of timer, 0xFFFFFFFF ntb */
#define MAC_RF_TIMER_MAX_TIME_NTB 0xFFFFFFFF
/**
* @brief mac_rf_timer_get_timeout_ids() - mac rf get timeout timer ids.
* @param void - void.
* @return uint32_t - timer id.
*/
uint32_t mac_rf_timer_get_timeout_ids();
/**
* @brief mac_rf_timer_clr_timeout_id() - mac rf clear timeout timer ids.
* @param timer_ids - timer ids.
* @return void - void.
*/
void mac_rf_timer_clr_timeout_ids(uint32_t timer_ids);
/**
* @brief mac_rf_timer_enable() - mac rf timer enable.
* @param ids - timer ids.
* @return void - void.
*/
void mac_rf_timer_enable(uint32_t ids);
/**
* @brief mac_rf_timer_enable_all() - mac rf timer enable all.
* @param void - void.
* @return void - void.
*/
void mac_rf_timer_enable_all();
/**
* @brief mac_rf_timer_disable_all() - mac rf timer disable.
* @param void - void.
* @return void - void.
*/
void mac_rf_timer_disable_all();
/**
* @brief mac_rf_timer_start() - mac rf timer start.
* @param timer_id - timer id.
* @return void - void.
*/
void mac_rf_timer_start(uint32_t timer_id);
/**
* @brief mac_rf_timer_stop() - mac rf timer stop.
* @param timer_id - timer id.
* @return void - void.
*/
void mac_rf_timer_stop(uint32_t timer_id);
/**
* @brief mac_rf_timer_set() - mac rf timer set time value.
* @param timer_id - timer id.
* @param time_ntb - timer uint ntb.
* @return void - void.
*/
void mac_rf_timer_set(uint32_t timer_id, uint32_t time_ntb);
#ifdef __cplusplus
}
#endif
#endif // !__MAC_RF_TIMER_H__