Home
last modified time | relevance | path

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

/openbmc/phosphor-modbus/rtu/firmware/
H A Ddevice_firmware.cpp57 PortIntf& serialPort) : in DeviceFirmware() argument
62 config(config), serialPort(serialPort) in DeviceFirmware()
90 auto ret = co_await serialPort.readHoldingRegisters( in readVersionRegister()
H A Ddevice_firmware.hpp39 PortIntf& serialPort);
52 PortIntf& serialPort; member in phosphor::modbus::rtu::device::DeviceFirmware
/openbmc/phosphor-modbus/rtu/inventory/
H A Dmodbus_inventory.cpp60 auto serialPort = std::get<std::string>(serialPortIter->second); in processModbusAddressInterface() local
62 config.addressMap[serialPort].push_back(AddressRange{ in processModbusAddressInterface()
66 "PORT", serialPort, "START", rangeStart, "END", rangeEnd); in processModbusAddressInterface()
241 for (const auto& [serialPort, _] : config.addressMap) in Device()
243 if (serialPorts.find(serialPort) == serialPorts.end()) in Device()
245 error("Serial port {PORT} not found for {NAME}", "PORT", serialPort, in Device()
257 for (const auto& [serialPort, _] : config.addressMap) in probePorts()
259 if (serialPorts.find(serialPort) == serialPorts.end()) in probePorts()
263 ctx.spawn(probePort(serialPort)); in probePorts()
/openbmc/phosphor-modbus/rtu/device/
H A Ddevice_factory.cpp41 PortIntf& serialPort, EventIntf::Events& events) in create() argument
47 return std::make_unique<ReservoirPumpUnit>(ctx, config, serialPort, in create()
H A Dreservoir_pump_unit.cpp21 PortIntf& serialPort, EventIntf::Events& events) : in ReservoirPumpUnit() argument
22 BaseDevice(ctx, config, serialPort, events) in ReservoirPumpUnit()
H A Dbase_device.hpp40 const config::Config& config, PortIntf& serialPort,
59 PortIntf& serialPort; member in phosphor::modbus::rtu::device::BaseDevice
H A Dbase_device.cpp14 const config::Config& config, PortIntf& serialPort, in BaseDevice() argument
16 ctx(ctx), config(config), serialPort(serialPort), events(events) in BaseDevice()
23 std::make_unique<DeviceFirmware>(ctx, config, serialPort); in BaseDevice()
149 auto ret = co_await serialPort.readHoldingRegisters( in readSensorRegisters()
256 auto ret = co_await serialPort.readHoldingRegisters( in readStatusRegisters()
H A Dreservoir_pump_unit.hpp22 PortIntf& serialPort, EventIntf::Events& events);
H A Ddevice_factory.hpp47 PortIntf& serialPort, EventIntf::Events& events)
/openbmc/phosphor-modbus/rtu/
H A Ddevice_manager.cpp147 auto serialPort = ports.find(config.portName); in processDeviceAdded() local
148 if (serialPort == ports.end()) in processDeviceAdded()
156 *(serialPort->second), events); in processDeviceAdded()
/openbmc/phosphor-modbus/tests/
H A Dtest_firmware.cpp35 PortIntf::BasePort& serialPort) : in TestFirmware() argument
36 DeviceIntf::DeviceFirmware(ctx, config, serialPort) in TestFirmware()