sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
mcp3422.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <stdint.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <wiringPi.h>
#include <wiringPiI2C.h>
#include "mcp3422.h"

Functions

void waitForConversion (int fd, unsigned char *buffer, int n)
 
int myAnalogRead (struct wiringPiNodeStruct *node, int chan)
 
int mcp3422Setup (int pinBase, int i2cAddress, int sampleRate, int gain)
 

Function Documentation

int mcp3422Setup ( int  pinBase,
int  i2cAddress,
int  sampleRate,
int  gain 
)
int myAnalogRead ( struct wiringPiNodeStruct node,
int  chan 
)
void waitForConversion ( int  fd,
unsigned char *  buffer,
int  n 
)