00001
00018
00019
00020
00021
00022
00023 #include "uf.h"
00024 #if NX_UF_EN
00025 #include "co_int.h"
00026
00027 #include "co_bool.h"
00028
00029 #include "compiler.h"
00030
00031 #include "hal_dma.h"
00032
00033 #include "ipc_emb.h"
00034
00035 #include "dbg.h"
00036
00037 #include "co_utils.h"
00038
00039 #include "macif.h"
00040
00041
00042 #include "reg_macbypass.h"
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 void uf_event_ind(void)
00055 {
00056 uint8_t rx_format;
00057 struct rx_vector_desc vect;
00058
00059
00060 vect.rx_vec_1.recvec1a = macbyp_int_rxv0_get();
00061 vect.rx_vec_1.recvec1b = macbyp_int_rxv4_get();
00062 vect.rx_vec_1.recvec1c = macbyp_int_rxv8_get();
00063 vect.rx_vec_1.recvec1d = macbyp_rxv12_get();
00064
00065
00066 phy_get_channel(&vect.phy_info, PHY_PRIM);
00067
00068 rx_format = hal_desc_get_rx_format(&vect.rx_vec_1);
00069
00070
00071 if (rx_format != FORMATMOD_HT_MF)
00072 return;
00073
00074 macif_uf_ind(&vect);
00075 }
00076
00077 #endif // NX_UF_EN
00078