mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-05 18:21:54 +00:00
Added changes for Raspi I2C
This commit is contained in:
@@ -18,7 +18,7 @@ namespace sta
|
||||
* @param intf %I2C hardware interface
|
||||
* @param csPin The peripheral's address.
|
||||
*/
|
||||
I2CDevice(I2C * intf, int address, bool master=false, bool blocking=true);
|
||||
I2CDevice(I2C * intf, int address, bool master=true, bool blocking=true);
|
||||
|
||||
protected:
|
||||
void select() override;
|
||||
|
@@ -78,7 +78,7 @@ namespace sta
|
||||
bool isAquired();
|
||||
private:
|
||||
Mutex * mutex_;
|
||||
bool aquired_ = false;
|
||||
bool acquired_ = false;
|
||||
};
|
||||
} // namespace sta
|
||||
|
||||
|
@@ -42,7 +42,8 @@ namespace sta
|
||||
|
||||
class RaspiI2CDevice : public I2CDevice
|
||||
{
|
||||
RaspiI2CDevice(RaspiI2C * intf, uint16_t address_10bit, Mutex* mutex=nullptr, bool master=false, bool blocking=true);
|
||||
public:
|
||||
RaspiI2CDevice(RaspiI2C * intf, uint16_t address_10bit, bool master=true, bool blocking=true);
|
||||
};
|
||||
} // namespace sta
|
||||
|
||||
|
Reference in New Issue
Block a user