Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
linux_ppdev.h File Reference
#include <sys/ioctl.h>
#include <stdlib.h>
+ Include dependency graph for linux_ppdev.h:

Go to the source code of this file.

Macros

#define OBSOLETE__IOW   _IOW
 
#define ppi_claim(fd)
 
#define ppi_release(fd)
 
#define DO_PPI_READ(fd, reg, valp)
 
#define DO_PPI_WRITE(fd, reg, valp)
 

Macro Definition Documentation

◆ DO_PPI_READ

#define DO_PPI_READ (   fd,
  reg,
  valp 
)
Value:
(void)ioctl(fd, \
(reg) == PPIDATA? PPRDATA: ((reg) == PPICTRL? PPRCONTROL: PPRSTATUS), \
valp)
typedef void(GLAPIENTRYP _GLUfuncptr)(void)
@ PPIDATA
Definition ppi.h:28
@ PPICTRL
Definition ppi.h:29

◆ DO_PPI_WRITE

#define DO_PPI_WRITE (   fd,
  reg,
  valp 
)
Value:
(void)ioctl(fd, \
(reg) == PPIDATA? PPWDATA: ((reg) == PPICTRL? PPWCONTROL: PPWSTATUS), \
valp)

◆ OBSOLETE__IOW

#define OBSOLETE__IOW   _IOW

◆ ppi_claim

#define ppi_claim (   fd)
Value:
if (ioctl(fd, PPCLAIM)) { \
avrdude_message(MSG_INFO, "%s: can't claim device \"%s\": %s\n\n", \
progname, port, strerror(errno)); \
close(fd); \
return; \
}
#define MSG_INFO
Definition avrdude.h:51
char * progname
Definition main.c:61

◆ ppi_release

#define ppi_release (   fd)
Value:
if (ioctl(fd, PPRELEASE)) { \
avrdude_message(MSG_INFO, "%s: can't release device: %s\n\n", \
progname, strerror(errno)); \
}