mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 15:02:25 +00:00
ed7d6c74f4
Introduces the notion of a transaction that consists of one or more messages. Whereby a message has a read or write direction and consists of one or more bytes. Issue #4170 Fixes #4169
38 lines
862 B
C++
38 lines
862 B
C++
/*
|
|
* \brief I2C session client implementation
|
|
* \author Jean-Adrien Domage <jean-adrien.domage@gapfruit.com>
|
|
* \date 2021-02-25
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2013-2021 Genode Labs GmbH
|
|
* Copyright (C) 2021 gapfruit AG
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU Affero General Public License version 3.
|
|
*/
|
|
|
|
#ifndef _INCLUDE__I2C_SESSION__CLIENT_H_
|
|
#define _INCLUDE__I2C_SESSION__CLIENT_H_
|
|
|
|
#include <base/rpc_client.h>
|
|
#include <i2c_session/capability.h>
|
|
|
|
namespace I2c { struct Session_client; }
|
|
|
|
|
|
struct I2c::Session_client : Rpc_client<I2c::Session>
|
|
{
|
|
explicit Session_client(I2c::Session_capability session)
|
|
:
|
|
Rpc_client<I2c::Session>(session)
|
|
{ }
|
|
|
|
void transmit(Transaction & transaction) override
|
|
{
|
|
call<Rpc_transmit>(transaction);
|
|
}
|
|
};
|
|
|
|
#endif /* _INCLUDE__I2C_SESSION__CLIENT_H_ */
|