first commit -push
This commit is contained in:
22
RobotNet.Script/IUnixDevice.cs
Normal file
22
RobotNet.Script/IUnixDevice.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace RobotNet.Script;
|
||||
|
||||
/// <summary>
|
||||
/// Service để đọc và ghi dữ liệu từ các thiết bị Unix.
|
||||
/// </summary>
|
||||
public interface IUnixDevice
|
||||
{
|
||||
/// <summary>
|
||||
/// Đọc dữ liệu từ thiết bị Unix theo tên và độ dài yêu cầu.
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="length"></param>
|
||||
/// <returns></returns>
|
||||
byte[] ReadDev(string name, int length);
|
||||
|
||||
/// <summary>
|
||||
/// Ghi dữ liệu vào thiết bị Unix theo tên.
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="data"></param>
|
||||
void WriteDev(string name, byte[] data);
|
||||
}
|
||||
Reference in New Issue
Block a user