MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / ReadConfigPortWord

Function ReadConfigPortWord

dependencies/macUSPCIO/macUSPCIOAccess.h:93–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93inline uint16_t ReadConfigPortWord(uint16_t address)
94{
95 if(!macUSPCIO_driver_connection)
96 {
97 return 0;
98 }
99
100 uint32_t outputCount = 1;
101 uint64_t output = 0;
102 uint64_t input[1] = {address};
103
104 IOConnectCallScalarMethod(macUSPCIO_driver_connection, 3, input, 1, &output, &outputCount);
105
106 return (uint16_t)output;
107}
108
109
110#endif /* macUSPCIOAccess_h */

Callers 1

i2c_smbus_i801_detectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected