- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# /space/home/slher/rel/Beken/v6_4_5/macsw/ip/lmac/src/uf/uf.c

Go to the documentation of this file.

    00001
    00018 /*
    00019  * INCLUDE FILES
    00020  ****************************************************************************************
    00021  */
    00022 // For Unsupported frames
    00023 #include "uf.h"
    00024 #if NX_UF_EN
    00025 #include "co_int.h"
    00026 // For bool
    00027 #include "co_bool.h"
    00028 // For INLINE
    00029 #include "compiler.h"
    00030 // GP DMA descriptor allocation
    00031 #include "hal_dma.h"
    00032 // IPC host buffer allocation
    00033 #include "ipc_emb.h"
    00034 // For debug functions
    00035 #include "dbg.h"
    00036 // For HW/CPU buffer pointer manipulations
    00037 #include "co_utils.h"
    00038
    00039 #include "macif.h"
    00040
    00041 // For rx vector definitions
    00042 #include "reg_macbypass.h"
    00043
    00044 /*
    00045  * MACROS
    00046  ****************************************************************************************
    00047  */
    00048
    00049 /*
    00050  * FUNCTION DEFINITIONS
    00051  ****************************************************************************************
    00052  */
    00053
    00054 void uf_event_ind(void)
    00055 {
    00056     uint8_t rx_format;
    00057     struct rx_vector_desc vect;
    00058
    00059     //Read Rx vector 1
    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     // Get the information on the current channel from the PHY driver
    00066     phy_get_channel(&vect.phy_info, PHY_PRIM);
    00067     // Read format
    00068     rx_format = hal_desc_get_rx_format(&vect.rx_vec_1);
    00069
    00070     // Check if the received format is HT
    00071     if (rx_format != FORMATMOD_HT_MF)
    00072         return;
    00073
    00074     macif_uf_ind(&vect);
    00075 }
    00076
    00077 #endif // NX_UF_EN
    00078