12 of 286
3 Input/Output Routines ADCtoCom1() stream analog conversion data to Com1 BusRead() read data from a bus-oriented device BusWrite() write data to a bus-oriented device CloseI2C() deinitialize an I2C communication channel ClosePWM() deinitialize an PWM channel CloseSPI() deinitialize an SPI2 communication channel CloseX10() deinitialize an X-10 communication channel Com1toDAC() receive stream of analog conversion data CountTransitions() count transitions on an input pin DACPin() produce an analog voltage on an output pin DefineBus() specify the parameters for accessing a bus-oriented device DefineX10() specify the communication parameters for an X-10 channel FreqOut() produce a dual-frequency sine wave on an output pin Get1Wire() receive a bit using the 1-Wire protocol Get1WireByte() receive a byte using the 1-Wire protocol Get1WireData() receive one or more bytes using the 1-Wire protocol GetADC() perform an analog to digital conversion on an input GetPin() read the state of an input pin I2CCmd() send/receive data over an I2C channel I2CGetByte() receive a byte on an I2C channel I2CPutByte() send a byte on an I2C channel I2CStart() create a Start condition on an I2C channel I2CStop() create a Stop condition on an I2C channel InputCapture() record the high/low times of a pulse train on an input pin InputCaptureEx() record the high/low times of a pulse train on an input pin OpenI2C() prepare for I2C communication with an external device OpenI2CSlave() activate I2C slave mode OpenSPI() prepare for SPI communication with an external device OpenSPISlave() activate SPI slave mode OpenPWM() prepare for PWM generation OpenX10() prepare an X-10 communication channel for use OutputCapture() produce a pulse train OutputCaptureEx() produce a pulse train on any output pin PlaySound() reproduce sampled audio on an output pin PortBit() compose a designator for a specific bit in an I/O port PulseIn() measure a pulse width on an input pin PulseOut() generate a pulse on an output pin Put1Wire() send a bit using the 1-Wire protocol Put1WireByte() send a byte using the 1-Wire protocol Put1WireData() send one or more bytes using the 1-Wire protocol PutDAC() produce an analog voltage on an output pin PutPin() configure an I/O pin PWM() initiate PWM generation or change the duty cycle RCTime() measure an RC charge/discharge time Reset1Wire() send a reset signal using the 1-Wire protocol ShiftIn() perform synchronous serial input ShiftInEx() perform synchronous serial input with more configurability ShiftOut() perform synchronous serial output ShiftOutEx() perform synchronous serial output with more configurability SPICmd() perform SPI communication with an external device StatusX10() determine the status of an X-10 communication channel X10Cmd() send commands using the X-10 protocol