Class: TimexDatalinkClient::Protocol7::Eeprom
- Inherits:
-
Object
- Object
- TimexDatalinkClient::Protocol7::Eeprom
- Defined in:
- lib/timex_datalink_client/protocol_7/eeprom.rb,
lib/timex_datalink_client/protocol_7/eeprom/games.rb,
lib/timex_datalink_client/protocol_7/eeprom/speech.rb,
lib/timex_datalink_client/protocol_7/eeprom/activity.rb,
lib/timex_datalink_client/protocol_7/eeprom/calendar.rb,
lib/timex_datalink_client/protocol_7/eeprom/phone_number.rb,
lib/timex_datalink_client/protocol_7/eeprom/calendar/event.rb
Defined Under Namespace
Classes: Activity, Calendar, Games, PhoneNumber, Speech
Constant Summary collapse
- CPACKET_SECT =
[0x90, 0x05]
- CPACKET_DATA =
[0x91, 0x05]
- CPACKET_END =
[0x92, 0x05]
- CPACKET_SECT_WELCOME =
[ 0x44, 0x53, 0x49, 0x20, 0x54, 0x6f, 0x79, 0x73, 0x20, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x2e, 0x2e, 0x65, 0x42, 0x72, 0x61, 0x69, 0x6e, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00 ]
- CPACKET_DATA_LENGTH =
32
Instance Attribute Summary collapse
-
#activities ⇒ Object
Returns the value of attribute activities.
-
#calendar ⇒ Object
Returns the value of attribute calendar.
-
#games ⇒ Object
Returns the value of attribute games.
-
#phone_numbers ⇒ Object
Returns the value of attribute phone_numbers.
-
#speech ⇒ Object
Returns the value of attribute speech.
Instance Method Summary collapse
-
#initialize(activities: nil, games: nil, calendar: nil, phone_numbers: nil, speech: nil) ⇒ Eeprom
constructor
Create an Eeprom instance.
-
#packets ⇒ Array<Array<Integer>>
Compile packets for EEPROM data.
Methods included from Helpers::CpacketPaginator
Constructor Details
#initialize(activities: nil, games: nil, calendar: nil, phone_numbers: nil, speech: nil) ⇒ Eeprom
Create an Eeprom instance.
33 34 35 36 37 38 39 |
# File 'lib/timex_datalink_client/protocol_7/eeprom.rb', line 33 def initialize(activities: nil, games: nil, calendar: nil, phone_numbers: nil, speech: nil) @activities = activities @games = games @calendar = calendar @phone_numbers = phone_numbers @speech = speech end |
Instance Attribute Details
#activities ⇒ Object
Returns the value of attribute activities.
23 24 25 |
# File 'lib/timex_datalink_client/protocol_7/eeprom.rb', line 23 def activities @activities end |
#calendar ⇒ Object
Returns the value of attribute calendar.
23 24 25 |
# File 'lib/timex_datalink_client/protocol_7/eeprom.rb', line 23 def calendar @calendar end |
#games ⇒ Object
Returns the value of attribute games.
23 24 25 |
# File 'lib/timex_datalink_client/protocol_7/eeprom.rb', line 23 def games @games end |
#phone_numbers ⇒ Object
Returns the value of attribute phone_numbers.
23 24 25 |
# File 'lib/timex_datalink_client/protocol_7/eeprom.rb', line 23 def phone_numbers @phone_numbers end |
#speech ⇒ Object
Returns the value of attribute speech.
23 24 25 |
# File 'lib/timex_datalink_client/protocol_7/eeprom.rb', line 23 def speech @speech end |
Instance Method Details
#packets ⇒ Array<Array<Integer>>
Compile packets for EEPROM data.
44 45 46 |
# File 'lib/timex_datalink_client/protocol_7/eeprom.rb', line 44 def packets [header] + payloads + [CPACKET_END] end |