-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
edda404
commit 3e7f84a
Showing
59 changed files
with
8,891 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace XtraLibrary.Assy | ||
{ | ||
public class OIS | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace XtraLibrary.Assy | ||
{ | ||
public class WorkSlip | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
using System.Text; | ||
|
||
namespace XtraLibrary | ||
{ | ||
|
||
public class EightBits | ||
{ | ||
private byte[] m_Bits; | ||
|
||
public EightBits() { | ||
m_Bits = new byte[8]; | ||
} | ||
|
||
public EightBits(byte b) | ||
:this() | ||
{ | ||
byte val = b; | ||
for (int i = 0; i < m_Bits.Length; i++) | ||
{ | ||
m_Bits[i] = (byte)(val & 0x01); | ||
val = (byte)(val >> 1); | ||
} | ||
} | ||
|
||
public byte ToByte() | ||
{ | ||
byte b = 0; | ||
for (int i = m_Bits.Length - 1; i >= 0; i--) | ||
{ | ||
b = (byte)(b << 1); | ||
b += m_Bits[i]; | ||
} | ||
return b; | ||
} | ||
|
||
public byte Bit1 | ||
{ | ||
get | ||
{ | ||
return m_Bits[0]; | ||
} | ||
set | ||
{ | ||
if (value > 1) | ||
{ | ||
throw new OverflowException("value should be 0 or 1"); | ||
} | ||
m_Bits[0] = value; | ||
} | ||
} | ||
|
||
public byte Bit2 | ||
{ | ||
get | ||
{ | ||
return m_Bits[1]; | ||
} | ||
set | ||
{ | ||
if (value > 1) | ||
{ | ||
throw new OverflowException("value should be 0 or 1"); | ||
} | ||
m_Bits[1] = value; | ||
} | ||
} | ||
|
||
public byte Bit3 | ||
{ | ||
get | ||
{ | ||
return m_Bits[2]; | ||
} | ||
set | ||
{ | ||
if (value > 1) | ||
{ | ||
throw new OverflowException("value should be 0 or 1"); | ||
} | ||
m_Bits[2] = value; | ||
} | ||
} | ||
|
||
public byte Bit4 | ||
{ | ||
get | ||
{ | ||
return m_Bits[3]; | ||
} | ||
set | ||
{ | ||
if (value > 1) | ||
{ | ||
throw new OverflowException("value should be 0 or 1"); | ||
} | ||
m_Bits[3] = value; | ||
} | ||
} | ||
|
||
public byte Bit5 | ||
{ | ||
get | ||
{ | ||
return m_Bits[4]; | ||
} | ||
set | ||
{ | ||
if (value > 1) | ||
{ | ||
throw new OverflowException("value should be 0 or 1"); | ||
} | ||
m_Bits[4] = value; | ||
} | ||
} | ||
|
||
public byte Bit6 | ||
{ | ||
get | ||
{ | ||
return m_Bits[5]; | ||
} | ||
set | ||
{ | ||
if (value > 1) | ||
{ | ||
throw new OverflowException("value should be 0 or 1"); | ||
} | ||
m_Bits[5] = value; | ||
} | ||
} | ||
|
||
public byte Bit7 | ||
{ | ||
get | ||
{ | ||
return m_Bits[6]; | ||
} | ||
set | ||
{ | ||
if (value > 1) | ||
{ | ||
throw new OverflowException("value should be 0 or 1"); | ||
} | ||
m_Bits[6] = value; | ||
} | ||
} | ||
|
||
public byte Bit8 | ||
{ | ||
get | ||
{ | ||
return m_Bits[7]; | ||
} | ||
set | ||
{ | ||
if (value > 1) | ||
{ | ||
throw new OverflowException("value should be 0 or 1"); | ||
} | ||
m_Bits[7] = value; | ||
} | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
string ret = null; | ||
for (int i = m_Bits.Length - 1; i >= 0; i--) | ||
{ | ||
ret += m_Bits[i].ToString(); | ||
} | ||
return ret; | ||
} | ||
|
||
public static explicit operator byte (EightBits eb) | ||
{ | ||
return eb.ToByte(); | ||
} | ||
|
||
public static explicit operator EightBits(byte b) | ||
{ | ||
return new EightBits(b); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
|
||
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
[assembly: AssemblyTitle("XtraLibrary")] | ||
[assembly: AssemblyDescription("XtraLibrary 17.09.21.001")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("LSI-ROHM")] | ||
[assembly: AssemblyProduct("XtraLibrary")] | ||
[assembly: AssemblyCopyright("Copyright © LSI-ROHM 2014")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Setting ComVisible to false makes the types in this assembly not visible | ||
// to COM components. If you need to access a type in this assembly from | ||
// COM, set the ComVisible attribute to true on that type. | ||
[assembly: ComVisible(false)] | ||
|
||
// The following GUID is for the ID of the typelib if this project is exposed to COM | ||
[assembly: Guid("99b17790-2c24-4c62-80b4-23c49897e38b")] | ||
|
||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Build and Revision Numbers | ||
// by using the '*' as shown below: | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
[assembly: AssemblyVersion("1.0.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
using System.Text; | ||
|
||
namespace XtraLibrary.SecsGem | ||
{ | ||
public class CEID | ||
{ | ||
public void AddReport(ReportVariable report) | ||
{ | ||
|
||
} | ||
} | ||
public class CEID<T> | ||
: CEID where T : SecsItem | ||
{ | ||
//POSIBLE TYPES OF CEID are | ||
//ASCII, I1, I2, I4, I8, U1, U2, U4, U8 | ||
//reference document :141433-E005-00-0712.pdf | ||
|
||
|
||
|
||
} | ||
} |
Oops, something went wrong.