2023-07-13 11:27:03 +08:00
|
|
|
#ifndef _APE_MTIMER_H_
|
|
|
|
#define _APE_MTIMER_H_
|
|
|
|
|
|
|
|
#include "typedef.h"
|
|
|
|
|
2023-09-22 19:47:02 +08:00
|
|
|
void ape_mtimer_int_init(uint16_t nTimerId);
|
|
|
|
|
|
|
|
void ape_mtimer_int_clear(uint16_t nTimerId);
|
2023-07-13 11:27:03 +08:00
|
|
|
|
|
|
|
void ape_mtimer_sync(int32_t nScsId);
|
|
|
|
|
2023-08-18 20:30:52 +08:00
|
|
|
void ape_mtimer_unsync(int32_t nScsId);
|
|
|
|
|
2023-09-22 19:47:02 +08:00
|
|
|
int32_t mtimer_sfn_para_init(int32_t nTmrId, int32_t nScsId);
|
2023-07-13 11:27:03 +08:00
|
|
|
void ape_slot_ctw_set(uint8_t nTmrId);
|
|
|
|
int32_t mtimer_ape_slot_callback(uint8_t nTmrId);
|
|
|
|
|
2024-04-24 20:28:37 +08:00
|
|
|
int32_t get_tx_nr_sfn();
|
2023-07-13 11:27:03 +08:00
|
|
|
int32_t get_tx_lte_sfn();
|
2024-04-24 20:28:37 +08:00
|
|
|
int32_t get_tx_nr_slot();
|
2023-07-13 11:27:03 +08:00
|
|
|
int32_t get_tx_lte_subframe();
|
|
|
|
|
2024-04-24 20:28:37 +08:00
|
|
|
int32_t get_rx_nr_sfn();
|
2023-07-13 11:27:03 +08:00
|
|
|
int32_t get_rx_lte_sfn();
|
2024-04-24 20:28:37 +08:00
|
|
|
int32_t get_rx_nr_slot();
|
2023-07-13 11:27:03 +08:00
|
|
|
int32_t get_rx_lte_subframe();
|
|
|
|
|
2024-04-24 20:28:37 +08:00
|
|
|
int32_t get_tx_nr_slot_cycle();
|
|
|
|
int32_t get_tx_lte_subframe_cycle();
|
2024-04-28 13:50:24 +08:00
|
|
|
int32_t get_rx_slot_cycle();
|
2024-04-24 20:28:37 +08:00
|
|
|
int32_t get_rx_nr_slot_cycle();
|
|
|
|
int32_t get_rx_lte_subframe_cycle();
|
2023-07-13 11:27:03 +08:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|