summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/bcreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/bcreader.cpp')
-rw-r--r--src/devices/machine/bcreader.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/machine/bcreader.cpp b/src/devices/machine/bcreader.cpp
index 4d05a779835..9b286f49281 100644
--- a/src/devices/machine/bcreader.cpp
+++ b/src/devices/machine/bcreader.cpp
@@ -59,7 +59,7 @@ const device_type BARCODE_READER = &device_creator<barcode_reader_device>;
// barcode_reader_device - constructor
//-------------------------------------------------
-barcode_reader_device::barcode_reader_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+barcode_reader_device::barcode_reader_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, BARCODE_READER, "Barcode Reader", tag, owner, clock, "bcreader", __FILE__)
, m_byte_length(0)
, m_pixel_length(0)
@@ -93,7 +93,7 @@ void barcode_reader_device::device_start()
//-------------------------------------------------
// Left Odd
-static const UINT8 bcread_data_LO[10][7] =
+static const uint8_t bcread_data_LO[10][7] =
{
{1, 1, 1, 0, 0, 1, 0}, {1, 1, 0, 0, 1, 1, 0},
{1, 1, 0, 1, 1, 0, 0}, {1, 0, 0, 0, 0, 1, 0},
@@ -103,7 +103,7 @@ static const UINT8 bcread_data_LO[10][7] =
};
// Left Even
-static const UINT8 bcread_data_LE[10][7] =
+static const uint8_t bcread_data_LE[10][7] =
{
{1, 0, 1, 1, 0, 0, 0}, {1, 0, 0, 1, 1, 0, 0},
{1, 1, 0, 0, 1, 0, 0}, {1, 0, 1, 1, 1, 1, 0},
@@ -113,7 +113,7 @@ static const UINT8 bcread_data_LE[10][7] =
};
// Right Even
-static const UINT8 bcread_data_RE[10][7] =
+static const uint8_t bcread_data_RE[10][7] =
{
{0, 0, 0, 1, 1, 0, 1}, {0, 0, 1, 1, 0, 0, 1},
{0, 0, 1, 0, 0, 1, 1}, {0, 1, 1, 1, 1, 0, 1},
@@ -124,7 +124,7 @@ static const UINT8 bcread_data_RE[10][7] =
// EAN-13 added an extra digit to determine
// the parity type of the first digits block
-static const UINT8 bcread_parity_type[10][6] =
+static const uint8_t bcread_parity_type[10][6] =
{
{1, 1, 1, 1, 1, 1}, {1, 1, 0, 1, 0, 0},
{1, 1, 0, 0, 1, 0}, {1, 1, 0, 0, 0, 1},
@@ -264,13 +264,13 @@ void barcode_reader_device::write_code(const char *barcode, int len)
// the codes by bytes
//-------------------------------------------------
-UINT8 barcode_reader_device::read_code()
+uint8_t barcode_reader_device::read_code()
{
if (m_new_code)
{
if (m_byte_count < m_byte_length)
{
- UINT8 val = m_byte_data[m_byte_count];
+ uint8_t val = m_byte_data[m_byte_count];
m_byte_count++;
return val;
}