MCPcopy Create free account
hub / github.com/WiringPi/WiringPi / serialPutchar

Function serialPutchar

wiringPi/wiringSerial.c:156–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 */
155
156void serialPutchar(const int fd, const unsigned char c)
157{
158 ssize_t bytes_written = write(fd, &c, 1);
159 if (bytes_written != 1) {
160 perror("Error writing to file descriptor");
161 }
162}
163
164
165/*

Callers 8

myPinModeFunction · 0.85
myPullUpDnControlFunction · 0.85
myDigitalWriteFunction · 0.85
myPwmWriteFunction · 0.85
myAnalogReadFunction · 0.85
myDigitalReadFunction · 0.85
drcSetupSerialFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68