ext/hal/nxp/mcux/middleware/wireless/framework_5.3.2/XCVR/MKW41Z4/fsl_xcvr.c
/* Helper function to map radio mode to LL usage */
Helper function to map radio mode to LL usage
Helper function to map radio mode to LL usage
link_layer_t map_mode_to_ll(radio_mode_t mode)
{
    link_layer_t llret;
    switch (mode)
    {
        case BLE_MODE:
            llret = BLE_LL;
            break;
        case ZIGBEE_MODE:
            llret = ZIGBEE_LL;
            break;
        case ANT_MODE:
            llret = ANT_LL;
            break;
        case GFSK_BT_0p5_h_0p5:
        case GFSK_BT_0p5_h_0p32:
        case GFSK_BT_0p5_h_0p7:
        case GFSK_BT_0p5_h_1p0:
        case GFSK_BT_0p3_h_0p5:
        case GFSK_BT_0p7_h_0p5:
        case MSK: 
            llret = GENFSK_LL;
            break;
        default:
            llret = UNASSIGNED_LL;
            break;
    }
    return llret;
}
link_layer_t map_mode_to_ll ( radio_mode_t mode ) { link_layer_t llret ; switch ( mode ) { case BLE_MODE : llret = BLE_LL ; break ; case ZIGBEE_MODE : llret = ZIGBEE_LL ; break ; case ANT_MODE : llret = ANT_LL ; break ; case GFSK_BT_0p5_h_0p5 : case GFSK_BT_0p5_h_0p32 : case GFSK_BT_0p5_h_0p7 : case GFSK_BT_0p5_h_1p0 : case GFSK_BT_0p3_h_0p5 : case GFSK_BT_0p7_h_0p5 : case MSK : llret = GENFSK_LL ; break ; default : llret = UNASSIGNED_LL ; break ; } return llret ; }
Helper function to map radio mode to LL usage
Helper function to map radio mode to LL usage