FreeRTOS/Demo/RISC-V_RV64_PolarFire_SoftConsole/polarfire_hal/platform/mpfs_hal/common/mss_axiswitch.c
/* Reads the burstiness value for the given master port read/write address channel

burstiness_val: Return parameter bit 23:16 shows the burstiness value.
NOTE: Burstiness value formula as mentioned in AXISW document is Burstiness = DataReg[23:16] + 1

* return value: As received form AXI_ERR_BIT in CMD register.
*/
Reads the burstiness value for the given master port read/write address channel
burstiness_val: Return parameter bit 23:16 shows the burstiness value.
NOTE: Burstiness value formula as mentioned in AXISW document is Burstiness = DataReg[23:16] + 1

return value: As received form AXI_ERR_BIT in CMD register.
Reads the burstiness value for the given master port read / write address channel burstiness_val : Return parameter bit 23 : 16 shows the burstiness value . NOTE : Burstiness value formula as mentioned in AXISW document is Burstiness = DataReg [ 23 : 16 ] + 1 return value : As received form AXI_ERR_BIT in CMD register .
uint32_t MSS_AXISW_read_burstiness(mss_axisw_mport_t master_port_num,
                                                uint32_t* burstiness_val)
{
    while(AXISW->CMD & AXISW_CMD_EN_MASK);
    AXISW->CMD &= ~(AXISW_CMD_RW_MASK);  
    AXISW->CMD = ((master_port_num << AXISW_CMD_RWCHAN) |
                 (MSS_AXISW_BURSTINESS_EN) |
                 AXISW_CMD_EN_MASK);
    while(AXISW->CMD & AXISW_CMD_EN_MASK);
    *burstiness_val = ((AXISW->DATA & AXISW_DATA_BURSTI_MASK) >> AXISW_DATA_BURSTI) + 1u;
    return ((AXISW->CMD & AXISW_CMD_ERR_MASK) >> AXISW_CMD_ERR);   
}
uint32_t MSS_AXISW_read_burstiness ( mss_axisw_mport_t master_port_num , uint32_t * burstiness_val ) { while ( AXISW -> CMD & AXISW_CMD_EN_MASK ) ; AXISW -> CMD &= ~ ( AXISW_CMD_RW_MASK ) ; AXISW -> CMD = ( ( master_port_num << AXISW_CMD_RWCHAN ) | ( MSS_AXISW_BURSTINESS_EN ) | AXISW_CMD_EN_MASK ) ; while ( AXISW -> CMD & AXISW_CMD_EN_MASK ) ; * burstiness_val = ( ( AXISW -> DATA & AXISW_DATA_BURSTI_MASK ) >> AXISW_DATA_BURSTI ) + 1u ; return ( ( AXISW -> CMD & AXISW_CMD_ERR_MASK ) >> AXISW_CMD_ERR ) ; }
Reads the burstiness value for the given master port read/write address channel
burstiness_val: Return parameter bit 23:16 shows the burstiness value.
Reads the burstiness value for the given master port read / write address channel burstiness_val : Return parameter bit 23 : 16 shows the burstiness value .
/*Clear read/write and command EN bit*/ /*return error bit value*/