Pathompong Puengrostham / Mbed 2 deprecated mbedPirate

Dependencies:   mbed

Committer:
iamjay
Date:
Thu Dec 23 15:03:51 2010 +0000
Revision:
0:e0a44db7e925

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
iamjay 0:e0a44db7e925 1 #ifndef BITBANG_H
iamjay 0:e0a44db7e925 2 #define BITBANG_H
iamjay 0:e0a44db7e925 3
iamjay 0:e0a44db7e925 4 void bb_setup(int pins, int speed);
iamjay 0:e0a44db7e925 5 void bb_h(DigitalInOut *pin, int delay);
iamjay 0:e0a44db7e925 6 void bb_pin(DigitalInOut *pin, int dir, int delay);
iamjay 0:e0a44db7e925 7 void bb_cs(int dir);
iamjay 0:e0a44db7e925 8 int bb_i2c_start();
iamjay 0:e0a44db7e925 9 int bb_i2c_stop();
iamjay 0:e0a44db7e925 10 unsigned int bb_read_write_byte(unsigned int c);
iamjay 0:e0a44db7e925 11 void bb_write_byte(unsigned int c);
iamjay 0:e0a44db7e925 12 unsigned int bb_read_byte();
iamjay 0:e0a44db7e925 13 unsigned char bb_read_bit(void);
iamjay 0:e0a44db7e925 14 void bb_write_bit(unsigned char c);
iamjay 0:e0a44db7e925 15 void bb_clock_ticks(unsigned char c);
iamjay 0:e0a44db7e925 16 void bb_mosi(unsigned char dir);
iamjay 0:e0a44db7e925 17 void bb_clk(unsigned char dir);
iamjay 0:e0a44db7e925 18 unsigned char bb_miso();
iamjay 0:e0a44db7e925 19
iamjay 0:e0a44db7e925 20 #endif