Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: bitbang.h
- Revision:
- 0:e0a44db7e925
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bitbang.h Thu Dec 23 15:03:51 2010 +0000 @@ -0,0 +1,20 @@ +#ifndef BITBANG_H +#define BITBANG_H + +void bb_setup(int pins, int speed); +void bb_h(DigitalInOut *pin, int delay); +void bb_pin(DigitalInOut *pin, int dir, int delay); +void bb_cs(int dir); +int bb_i2c_start(); +int bb_i2c_stop(); +unsigned int bb_read_write_byte(unsigned int c); +void bb_write_byte(unsigned int c); +unsigned int bb_read_byte(); +unsigned char bb_read_bit(void); +void bb_write_bit(unsigned char c); +void bb_clock_ticks(unsigned char c); +void bb_mosi(unsigned char dir); +void bb_clk(unsigned char dir); +unsigned char bb_miso(); + +#endif