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.
bitbang.h@0:e0a44db7e925, 2010-12-23 (annotated)
- Committer:
- iamjay
- Date:
- Thu Dec 23 15:03:51 2010 +0000
- Revision:
- 0:e0a44db7e925
Who changed what in which revision?
| User | Revision | Line number | New 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 |