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
- Committer:
- iamjay
- Date:
- 2010-12-23
- Revision:
- 0:e0a44db7e925
File content as of revision 0:e0a44db7e925:
#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