FreeRTOS/Demo/RISC-V_RV64_PolarFire_SoftConsole/polarfire_hal/platform/mpfs_hal/common/mss_axiswitch.c
/*Performs read operation on the AXI SWITCH APB interface,
 * Parameters:
 * master_port_num = AXI Master Port number. See Enum mss_axisw_mport_t above.
 *
 *
 * slave_ready_en: returns the data returned by AXI SWITCH read operation for slave ready command
 * return value: As received form AXI_ERR_BIT in CMD register.
 *
 */
Performs read operation on the AXI SWITCH APB interface,
Parameters:
master_port_num = AXI Master Port number. See Enum mss_axisw_mport_t above.

returns the data returned by AXI SWITCH read operation for slave ready command
return value: As received form AXI_ERR_BIT in CMD register.
Performs read operation on the AXI SWITCH APB interface Parameters : master_port_num = AXI Master Port number . See Enum mss_axisw_mport_t above . returns the data returned by AXI SWITCH read operation for slave ready command return value : As received form AXI_ERR_BIT in CMD register .
uint32_t MSS_AXISW_read_slave_ready(mss_axisw_mport_t master_port_num,
                                                  uint8_t* slave_ready_en)
{
    while(AXISW->CMD & AXISW_CMD_EN_MASK);
    AXISW->CMD &= ~(AXISW_CMD_RW_MASK);  
    AXISW->CMD = ((master_port_num << AXISW_CMD_RWCHAN) |
                 (MSS_AXISW_SLV_RDY) |
                 AXISW_CMD_EN_MASK);
    while(AXISW->CMD & AXISW_CMD_EN_MASK);
    *slave_ready_en = AXISW->DATA & 0x01;
    return ((AXISW->CMD & AXISW_CMD_ERR_MASK) >> AXISW_CMD_ERR);   
}
uint32_t MSS_AXISW_read_slave_ready ( mss_axisw_mport_t master_port_num , uint8_t * slave_ready_en ) { while ( AXISW -> CMD & AXISW_CMD_EN_MASK ) ; AXISW -> CMD &= ~ ( AXISW_CMD_RW_MASK ) ; AXISW -> CMD = ( ( master_port_num << AXISW_CMD_RWCHAN ) | ( MSS_AXISW_SLV_RDY ) | AXISW_CMD_EN_MASK ) ; while ( AXISW -> CMD & AXISW_CMD_EN_MASK ) ; * slave_ready_en = AXISW -> DATA & 0x01 ; return ( ( AXISW -> CMD & AXISW_CMD_ERR_MASK ) >> AXISW_CMD_ERR ) ; }
Performs read operation on the AXI SWITCH APB interface,
 Parameters:
 master_port_num = AXI Master Port number.
Performs read operation on the AXI SWITCH APB interface Parameters : master_port_num = AXI Master Port number .
/*Clear read/write bit*/ /*return error bit value*/