soc/picorv32/project/kc705/common/system.c
// Set the channel mask register of the PCA9584 I2C multiplexer
// if you want to speak to channel 7:  ch = (1<<7)
// Returns 1 on success, 0 on failure
Set the channel mask register of the PCA9584 I2C multiplexer
if you want to speak to channel 7:  ch = (1<<7)
Returns 1 on success, 0 on failure
Set the channel mask register of the PCA9584 I2C multiplexer if you want to speak to channel 7 : ch = ( 1<<7 ) Returns 1 on success 0 on failure
uint8_t i2c_mux_set(uint8_t ch)
{
    SET_GPIO1(BASE_GPIO, GPIO_OUT_REG, PIN_PCA9584_RST, 0);
    SET_GPIO1(BASE_GPIO, GPIO_OUT_REG, PIN_PCA9584_RST, 1);
    return i2c_write_regs(I2C_ADR_PCA9584, ch, 0, 0);
}
uint8_t i2c_mux_set ( uint8_t ch ) { SET_GPIO1 ( BASE_GPIO , GPIO_OUT_REG , PIN_PCA9584_RST , 0 ) ; SET_GPIO1 ( BASE_GPIO , GPIO_OUT_REG , PIN_PCA9584_RST , 1 ) ; return i2c_write_regs ( I2C_ADR_PCA9584 , ch , 0 , 0 ) ; }
Set the channel mask register of the PCA9584 I2C multiplexer
if you want to speak to channel 7:  ch = (1<<7)
Returns 1 on success, 0 on failure
Set the channel mask register of the PCA9584 I2C multiplexer if you want to speak to channel 7 : ch = ( 1<<7 ) Returns 1 on success 0 on failure
// Reset PCA9584 (just in case)