Commcarte.h : Différence entre versions
m |
|||
| Ligne 1 : | Ligne 1 : | ||
{{RetourVers/TpII}} | {{RetourVers/TpII}} | ||
| − | + | <source lang="c"> | |
| − | + | #include <stdio.h> | |
| − | + | #include <sys/errno.h> | |
| − | + | #include <linux/ppdev.h> | |
| − | + | #include <linux/parport.h> | |
| − | + | #include <fcntl.h> | |
| − | + | #include <string.h> | |
| − | + | #include <stdlib.h> | |
| − | + | #include <sys/ioctl.h> | |
| − | + | ||
| − | + | int openParPort(char * parport); | |
| − | + | int ecrireParPortp(int device,unsigned char *val); | |
| + | int ecrireParPort(int device,unsigned char val); | ||
| + | int closeParPort(int device); | ||
| + | </source> | ||
{{RetourVers/TpII}} | {{RetourVers/TpII}} | ||
Version actuelle datée du 15 décembre 2012 à 21:51
retour vers la page des Tps II
#include <stdio.h>
#include <sys/errno.h>
#include <linux/ppdev.h>
#include <linux/parport.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <sys/ioctl.h>
int openParPort(char * parport);
int ecrireParPortp(int device,unsigned char *val);
int ecrireParPort(int device,unsigned char val);
int closeParPort(int device);