driver/sdp_pcf.h File Reference

#include <devbot/core/device.h>
#include <devbot/core/i2c_ctrl.h>

Include dependency graph for sdp_pcf.h:


Enumerations

enum  Led {
  off = 0x00, led1 = 0x01, led2 = 0x02, led3 = 0x04,
  led4 = 0x08, on = 0xff
}
enum  Switch { sw1 = 0x10, sw2 = 0x20, sw3 = 0x40, sw4 = 0x80 }
enum  Channel { ch1 = 0x01, ch2 = 0x02, ch3 = 0x03, ch4 = 0x04 }

Functions

int sdp_pcf_write_8574 (BotDevice *device, Led led)
int sdp_pcf_read_8574 (BotDevice *device, Switch sw)
int sdp_pcf_read_8591 (BotDevice *device, Channel ch)

Enumeration Type Documentation

enum Channel

Channel to check ??

Enumerator:
ch1 
ch2 
ch3 
ch4 

enum Led

LEDs to light

Enumerator:
off 
led1 
led2 
led3 
led4 
on 

enum Switch

Switches to check

Enumerator:
sw1 
sw2 
sw3 
sw4 


Function Documentation

int sdp_pcf_read_8574 ( BotDevice device,
Switch  sw 
)

int sdp_pcf_read_8591 ( BotDevice device,
Channel  ch 
)

int sdp_pcf_write_8574 ( BotDevice device,
Led  led 
)


(c) 2006 Edinburgh Robotics Ltd.
Generated on Fri Feb 2 11:24:05 2007 for libbot by doxygen 1.5.1