hawkeye camera support(not tested)
This commit is contained in:
21
framework/Inspectron.HawkEye/Camera/LunixNatives.cs
Normal file
21
framework/Inspectron.HawkEye/Camera/LunixNatives.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Inspectron.Devices.Raspberry
|
||||
{
|
||||
public static class LunixNatives
|
||||
{
|
||||
public const int O_RDWR = 2;
|
||||
|
||||
[DllImport("libc.so.6")]
|
||||
extern public static int open(string file, int mode);
|
||||
|
||||
[DllImport("libc.so.6")]
|
||||
extern public static int close(int fd);
|
||||
|
||||
[DllImport("libc.so.6")]
|
||||
extern public static int ioctl(int fd, int request, byte x);
|
||||
|
||||
public const int I2C_SLAVE = 0x0703;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user