Home
last modified time | relevance | path

Searched refs:switch_inst (Results 1 – 1 of 1) sorted by relevance

/hal_nxp-latest/mcux/mcux-sdk/components/srtm/services/
Dsrtm_i2c_service.c74 i2c_switch_t switch_inst; in SRTM_I2CService_ReadBus() local
85 switch_inst = &adapter->bus_structure.switches[switch_index]; in SRTM_I2CService_ReadBus()
86 switch_addr = switch_inst->slaveAddr; in SRTM_I2CService_ReadBus()
88 if (switch_inst->cur_channel != switch_channel) in SRTM_I2CService_ReadBus()
91 switch_inst->cur_channel = switch_channel; in SRTM_I2CService_ReadBus()
113 i2c_switch_t switch_inst; in SRTM_I2CService_WriteBus() local
124 switch_inst = &adapter->bus_structure.switches[switch_index]; in SRTM_I2CService_WriteBus()
125 switch_addr = switch_inst->slaveAddr; in SRTM_I2CService_WriteBus()
127 if (switch_inst->cur_channel != switch_channel) in SRTM_I2CService_WriteBus()
130 switch_inst->cur_channel = switch_channel; in SRTM_I2CService_WriteBus()