PRODUCTS
 


Main Page   Data Structures   File List   Data Fields   Globals  

light.c File Reference

Example of three devices interacting together. More...

#include <stdio.h>
#include <stdlib.h>
#include "TeleoMioDin.h"
#include "TeleoMioPwm.h"
#include "TeleoEasy.h"

Go to the source code of this file.

Functions

TeleoError valueUpdate (TMioDin *tmdin, bool value)
TeleoError dutyUpdate (TMioPwm *tmpwm, float value)
int main (int argc, char *argv[])

Variables

TeleoDeviceManagerteleoDeviceManager
TMioDinbutton1
TMioDinbutton2
TMioPwmlight
int8 lightValue


Detailed Description

Example of three devices interacting together.

Definition in file light.c.


Function Documentation

TeleoError dutyUpdate TMioPwm   tmpwm,
float    value
 

Definition at line 85 of file light.c.

References TELEO_OK, and TeleoError.

int main int    argc,
char *    argv[]
 

Definition at line 29 of file light.c.

References button1, button2, cchar, light, lightValue, TELEO_OK, TeleoEasy_Continue(), TeleoEasy_Init(), TeleoEasy_Start(), TMioDin_Create(), TMioDin_valueCallbackSet(), TMioPwm_Create(), and TMioPwm_dutyCallbackSet().

TeleoError valueUpdate TMioDin   tmdin,
bool    value
 


Variable Documentation

TMioDin* button1
 

Definition at line 22 of file light.c.

Referenced by main().

TMioDin* button2
 

Definition at line 23 of file light.c.

Referenced by main().

TMioPwm* light
 

Definition at line 24 of file light.c.

Referenced by main().

int8 lightValue
 

Definition at line 27 of file light.c.

Referenced by main().

TeleoDeviceManager* teleoDeviceManager
 

Definition at line 19 of file light.c.

 

copyright © 2002, 2003 MakingThings LLC