2 * This file is part of the libCEC(R) library.
4 * libCEC(R) is Copyright (C) 2011 Pulse-Eight Limited. All rights reserved.
5 * libCEC(R) is an original work, containing original code.
7 * libCEC(R) is a trademark of Pulse-Eight Limited.
9 * This program is dual-licensed; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 * Alternatively, you can license this library under a commercial license,
25 * please contact Pulse-Eight Licensing for more information.
27 * For more information contact:
28 * Pulse-Eight Licensing <license@pulse-eight.com>
29 * http://www.pulse-eight.com/
30 * http://www.pulse-eight.net/
33 #include "CECBusDevice.h"
34 #include "../CECProcessor.h"
35 #include "../implementations/ANCommandHandler.h"
36 #include "../implementations/CECCommandHandler.h"
37 #include "../implementations/SLCommandHandler.h"
38 #include "../implementations/VLCommandHandler.h"
39 #include "../platform/timeutils.h"
43 #define ToString(p) CCECCommandHandler::ToString(p)
45 CCECBusDevice::CCECBusDevice(CCECProcessor
*processor
, cec_logical_address iLogicalAddress
, uint16_t iPhysicalAddress
) :
46 m_type(CEC_DEVICE_TYPE_RESERVED
),
47 m_iPhysicalAddress(iPhysicalAddress
),
49 m_iLogicalAddress(iLogicalAddress
),
50 m_powerStatus(CEC_POWER_STATUS_UNKNOWN
),
51 m_processor(processor
),
52 m_vendor(CEC_VENDOR_UNKNOWN
),
53 m_menuState(CEC_MENU_STATE_ACTIVATED
),
54 m_bActiveSource(false),
55 m_iLastCommandSent(0),
57 m_cecVersion(CEC_VERSION_UNKNOWN
),
58 m_deviceStatus(CEC_DEVICE_STATUS_UNKNOWN
)
60 m_handler
= new CCECCommandHandler(this);
62 for (unsigned int iPtr
= 0; iPtr
< 4; iPtr
++)
63 m_menuLanguage
.language
[iPtr
] = '?';
64 m_menuLanguage
.language
[3] = 0;
65 m_menuLanguage
.device
= iLogicalAddress
;
67 m_strDeviceName
= ToString(m_iLogicalAddress
);
70 CCECBusDevice::~CCECBusDevice(void)
72 m_condition
.Broadcast();
76 void CCECBusDevice::AddLog(cec_log_level level
, const CStdString
&strMessage
)
78 m_processor
->AddLog(level
, strMessage
);
81 bool CCECBusDevice::HandleCommand(const cec_command
&command
)
83 CLockObject
lock(&m_transmitMutex
);
84 m_iLastActive
= GetTimeMs();
85 m_handler
->HandleCommand(command
);
90 void CCECBusDevice::PollVendorId(void)
92 CLockObject
lock(&m_transmitMutex
);
93 if (m_iLastActive
> 0 && m_iLogicalAddress
!= CECDEVICE_BROADCAST
&&
94 m_vendor
== CEC_VENDOR_UNKNOWN
&&
95 GetTimeMs() - m_iLastCommandSent
> 5000 &&
96 !m_processor
->IsMonitoring())
99 strLog
.Format("<< requesting vendor ID of '%s' (%X)", GetLogicalAddressName(), m_iLogicalAddress
);
100 AddLog(CEC_LOG_NOTICE
, strLog
);
101 m_iLastCommandSent
= GetTimeMs();
104 cec_command::Format(command
, GetMyLogicalAddress(), m_iLogicalAddress
, CEC_OPCODE_GIVE_DEVICE_VENDOR_ID
);
105 if (m_processor
->Transmit(command
))
106 m_condition
.Wait(&m_transmitMutex
, 1000);
110 bool CCECBusDevice::PowerOn(void)
112 cec_power_status current
= GetPowerStatus();
113 if (current
!= CEC_POWER_STATUS_ON
&&
114 current
!= CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON
)
117 strLog
.Format("<< powering on '%s' (%X)", GetLogicalAddressName(), m_iLogicalAddress
);
118 AddLog(CEC_LOG_DEBUG
, strLog
.c_str());
120 SetPowerStatus(CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON
);
123 cec_command::Format(command
, GetMyLogicalAddress(), m_iLogicalAddress
, CEC_OPCODE_IMAGE_VIEW_ON
);
125 return m_processor
->Transmit(command
);
131 bool CCECBusDevice::Standby(void)
134 strLog
.Format("<< putting '%s' (%X) in standby mode", GetLogicalAddressName(), m_iLogicalAddress
);
135 AddLog(CEC_LOG_DEBUG
, strLog
.c_str());
138 cec_command::Format(command
, GetMyLogicalAddress(), m_iLogicalAddress
, CEC_OPCODE_STANDBY
);
140 return m_processor
->Transmit(command
);
145 cec_version
CCECBusDevice::GetCecVersion(void)
147 if (!MyLogicalAddressContains(m_iLogicalAddress
))
150 strLog
.Format("<< requesting CEC version of '%s' (%X)", GetLogicalAddressName(), m_iLogicalAddress
);
151 AddLog(CEC_LOG_NOTICE
, strLog
);
153 cec_command::Format(command
, GetMyLogicalAddress(), m_iLogicalAddress
, CEC_OPCODE_GET_CEC_VERSION
);
154 CLockObject
lock(&m_transmitMutex
);
155 if (m_processor
->Transmit(command
))
156 m_condition
.Wait(&m_transmitMutex
, 1000);
159 CLockObject
lock(&m_mutex
);
163 const char* CCECBusDevice::GetLogicalAddressName(void) const
165 return ToString(m_iLogicalAddress
);
168 cec_menu_language
&CCECBusDevice::GetMenuLanguage(void)
170 if (!MyLogicalAddressContains(m_iLogicalAddress
))
173 strLog
.Format("<< requesting menu language of '%s' (%X)", GetLogicalAddressName(), m_iLogicalAddress
);
174 AddLog(CEC_LOG_NOTICE
, strLog
);
176 cec_command::Format(command
, GetMyLogicalAddress(), m_iLogicalAddress
, CEC_OPCODE_GET_MENU_LANGUAGE
);
177 CLockObject
lock(&m_transmitMutex
);
178 if (m_processor
->Transmit(command
))
179 m_condition
.Wait(&m_transmitMutex
, 1000);
182 CLockObject
lock(&m_mutex
);
183 return m_menuLanguage
;
186 cec_logical_address
CCECBusDevice::GetMyLogicalAddress(void) const
188 return m_processor
->GetLogicalAddress();
191 uint16_t CCECBusDevice::GetMyPhysicalAddress(void) const
193 return m_processor
->GetPhysicalAddress();
196 cec_power_status
CCECBusDevice::GetPowerStatus(void)
198 if (!MyLogicalAddressContains(m_iLogicalAddress
))
201 strLog
.Format("<< requesting power status of '%s' (%X)", GetLogicalAddressName(), m_iLogicalAddress
);
202 AddLog(CEC_LOG_NOTICE
, strLog
);
204 cec_command::Format(command
, GetMyLogicalAddress(), m_iLogicalAddress
, CEC_OPCODE_GIVE_DEVICE_POWER_STATUS
);
205 CLockObject
lock(&m_transmitMutex
);
206 if (m_processor
->Transmit(command
))
207 m_condition
.Wait(&m_transmitMutex
, 1000);
210 CLockObject
lock(&m_mutex
);
211 return m_powerStatus
;
214 cec_vendor_id
CCECBusDevice::GetVendorId(void)
216 if (!MyLogicalAddressContains(m_iLogicalAddress
))
219 strLog
.Format("<< requesting vendor ID of '%s' (%X)", GetLogicalAddressName(), m_iLogicalAddress
);
220 AddLog(CEC_LOG_NOTICE
, strLog
);
222 cec_command::Format(command
, GetMyLogicalAddress(), m_iLogicalAddress
, CEC_OPCODE_GIVE_DEVICE_VENDOR_ID
);
223 CLockObject
lock(&m_transmitMutex
);
225 if (m_processor
->Transmit(command
))
226 m_condition
.Wait(&m_transmitMutex
, 1000);
229 CLockObject
lock(&m_mutex
);
233 const char *CCECBusDevice::GetVendorName(void)
235 CLockObject
lock(&m_mutex
);
236 return ToString(m_vendor
);
239 bool CCECBusDevice::MyLogicalAddressContains(cec_logical_address address
) const
241 return m_processor
->HasLogicalAddress(address
);
244 cec_bus_device_status
CCECBusDevice::GetStatus(void)
246 CLockObject
lock(&m_mutex
);
247 if (m_deviceStatus
== CEC_DEVICE_STATUS_UNKNOWN
)
249 if (m_processor
->PollDevice(m_iLogicalAddress
))
250 m_deviceStatus
= CEC_DEVICE_STATUS_PRESENT
;
252 m_deviceStatus
= CEC_DEVICE_STATUS_NOT_PRESENT
;
255 return m_deviceStatus
;
262 void CCECBusDevice::SetCecVersion(const cec_version newVersion
)
264 m_cecVersion
= newVersion
;
267 strLog
.Format("%s (%X): CEC version %s", GetLogicalAddressName(), m_iLogicalAddress
, ToString(newVersion
));
268 AddLog(CEC_LOG_DEBUG
, strLog
);
271 void CCECBusDevice::SetMenuLanguage(const cec_menu_language
&language
)
273 CLockObject
lock(&m_mutex
);
274 if (language
.device
== m_iLogicalAddress
)
277 strLog
.Format(">> %s (%X): menu language set to '%s'", GetLogicalAddressName(), m_iLogicalAddress
, language
.language
);
278 m_processor
->AddLog(CEC_LOG_DEBUG
, strLog
);
279 m_menuLanguage
= language
;
283 void CCECBusDevice::SetOSDName(CStdString strName
)
285 CLockObject
lock(&m_mutex
);
286 if (m_strDeviceName
!= strName
)
289 strLog
.Format(">> %s (%X): osd name set to '%s'", GetLogicalAddressName(), m_iLogicalAddress
, strName
);
290 m_processor
->AddLog(CEC_LOG_DEBUG
, strLog
);
291 m_strDeviceName
= strName
;
295 void CCECBusDevice::SetMenuState(const cec_menu_state state
)
297 CLockObject
lock(&m_mutex
);
298 if (m_menuState
!= state
)
301 strLog
.Format(">> %s (%X): menu state set to '%s'", GetLogicalAddressName(), m_iLogicalAddress
, ToString(m_menuState
));
302 m_processor
->AddLog(CEC_LOG_DEBUG
, strLog
);
307 void CCECBusDevice::SetInactiveDevice(void)
309 CLockObject
lock(&m_mutex
);
310 m_bActiveSource
= false;
313 void CCECBusDevice::SetActiveDevice(void)
315 CLockObject
lock(&m_mutex
);
317 for (int iPtr
= 0; iPtr
< 16; iPtr
++)
318 if (iPtr
!= m_iLogicalAddress
)
319 m_processor
->m_busDevices
[iPtr
]->SetInactiveDevice();
321 m_bActiveSource
= true;
322 m_powerStatus
= CEC_POWER_STATUS_ON
;
325 bool CCECBusDevice::TryLogicalAddress(void)
328 strLog
.Format("trying logical address '%s'", GetLogicalAddressName());
329 AddLog(CEC_LOG_DEBUG
, strLog
);
331 m_processor
->SetAckMask(0x1 << m_iLogicalAddress
);
332 if (!TransmitPoll(m_iLogicalAddress
))
334 strLog
.Format("using logical address '%s'", GetLogicalAddressName());
335 AddLog(CEC_LOG_NOTICE
, strLog
);
336 SetDeviceStatus(CEC_DEVICE_STATUS_HANDLED_BY_LIBCEC
);
341 strLog
.Format("logical address '%s' already taken", GetLogicalAddressName());
342 AddLog(CEC_LOG_DEBUG
, strLog
);
343 SetDeviceStatus(CEC_DEVICE_STATUS_PRESENT
);
347 void CCECBusDevice::SetDeviceStatus(const cec_bus_device_status newStatus
)
349 CLockObject
lock(&m_mutex
);
352 case CEC_DEVICE_STATUS_UNKNOWN
:
354 m_powerStatus
= CEC_POWER_STATUS_UNKNOWN
;
355 m_vendor
= CEC_VENDOR_UNKNOWN
;
356 m_menuState
= CEC_MENU_STATE_ACTIVATED
;
357 m_bActiveSource
= false;
358 m_iLastCommandSent
= 0;
360 m_cecVersion
= CEC_VERSION_UNKNOWN
;
361 m_deviceStatus
= newStatus
;
363 case CEC_DEVICE_STATUS_HANDLED_BY_LIBCEC
:
365 m_powerStatus
= CEC_POWER_STATUS_ON
;
366 m_vendor
= CEC_VENDOR_UNKNOWN
;
367 m_menuState
= CEC_MENU_STATE_ACTIVATED
;
368 m_bActiveSource
= false;
369 m_iLastCommandSent
= 0;
371 m_cecVersion
= CEC_VERSION_1_3A
;
372 m_deviceStatus
= newStatus
;
374 case CEC_DEVICE_STATUS_PRESENT
:
375 case CEC_DEVICE_STATUS_NOT_PRESENT
:
376 m_deviceStatus
= newStatus
;
381 void CCECBusDevice::SetPhysicalAddress(uint16_t iNewAddress
)
383 CLockObject
lock(&m_mutex
);
387 strLog
.Format(">> %s (%X): physical address changed from %04x to %04x", GetLogicalAddressName(), m_iLogicalAddress
, m_iPhysicalAddress
, iNewAddress
);
388 AddLog(CEC_LOG_DEBUG
, strLog
.c_str());
390 m_iPhysicalAddress
= iNewAddress
;
394 void CCECBusDevice::SetStreamPath(uint16_t iNewAddress
, uint16_t iOldAddress
/* = 0 */)
396 CLockObject
lock(&m_mutex
);
400 strLog
.Format(">> %s (%X): stream path changed from %04x to %04x", GetLogicalAddressName(), m_iLogicalAddress
, iOldAddress
, iNewAddress
);
401 AddLog(CEC_LOG_DEBUG
, strLog
.c_str());
403 m_iStreamPath
= iNewAddress
;
408 SetPowerStatus(CEC_POWER_STATUS_ON
);
413 void CCECBusDevice::SetPowerStatus(const cec_power_status powerStatus
)
415 CLockObject
lock(&m_mutex
);
416 if (m_powerStatus
!= powerStatus
)
419 strLog
.Format(">> %s (%X): power status changed from '%s' to '%s'", GetLogicalAddressName(), m_iLogicalAddress
, ToString(m_powerStatus
), ToString(powerStatus
));
420 m_processor
->AddLog(CEC_LOG_DEBUG
, strLog
);
421 m_powerStatus
= powerStatus
;
425 void CCECBusDevice::SetVendorId(uint64_t iVendorId
)
428 CLockObject
lock(&m_mutex
);
429 m_vendor
= (cec_vendor_id
)iVendorId
;
433 case CEC_VENDOR_SAMSUNG
:
434 if (m_handler
->GetVendorId() != CEC_VENDOR_SAMSUNG
)
437 m_handler
= new CANCommandHandler(this);
441 if (m_handler
->GetVendorId() != CEC_VENDOR_LG
)
444 m_handler
= new CSLCommandHandler(this);
447 case CEC_VENDOR_PANASONIC
:
448 if (m_handler
->GetVendorId() != CEC_VENDOR_PANASONIC
)
451 m_handler
= new CVLCommandHandler(this);
455 if (m_handler
->GetVendorId() != CEC_VENDOR_UNKNOWN
)
458 m_handler
= new CCECCommandHandler(this);
465 strLog
.Format("%s (%X): vendor = %s (%06x)", GetLogicalAddressName(), m_iLogicalAddress
, GetVendorName(), m_vendor
);
466 m_processor
->AddLog(CEC_LOG_DEBUG
, strLog
.c_str());
470 /** @name Transmit methods */
472 bool CCECBusDevice::TransmitActiveSource(void)
474 CLockObject
lock(&m_mutex
);
475 if (m_powerStatus
!= CEC_POWER_STATUS_ON
)
478 strLog
.Format("<< %s (%X) is not powered on", GetLogicalAddressName(), m_iLogicalAddress
);
479 AddLog(CEC_LOG_DEBUG
, strLog
);
481 else if (m_bActiveSource
)
484 strLog
.Format("<< %s (%X) -> broadcast (F): active source (%4x)", GetLogicalAddressName(), m_iLogicalAddress
, m_iPhysicalAddress
);
485 AddLog(CEC_LOG_NOTICE
, strLog
);
488 cec_command::Format(command
, m_iLogicalAddress
, CECDEVICE_BROADCAST
, CEC_OPCODE_ACTIVE_SOURCE
);
489 command
.parameters
.PushBack((uint8_t) ((m_iPhysicalAddress
>> 8) & 0xFF));
490 command
.parameters
.PushBack((uint8_t) (m_iPhysicalAddress
& 0xFF));
493 return m_processor
->Transmit(command
);
498 strLog
.Format("<< %s (%X) is not the active source", GetLogicalAddressName(), m_iLogicalAddress
);
499 AddLog(CEC_LOG_DEBUG
, strLog
);
505 bool CCECBusDevice::TransmitCECVersion(cec_logical_address dest
)
507 CLockObject
lock(&m_mutex
);
509 strLog
.Format("<< %s (%X) -> %s (%X): cec version %s", GetLogicalAddressName(), m_iLogicalAddress
, ToString(dest
), dest
, ToString(m_cecVersion
));
510 AddLog(CEC_LOG_NOTICE
, strLog
);
513 cec_command::Format(command
, m_iLogicalAddress
, dest
, CEC_OPCODE_CEC_VERSION
);
514 command
.parameters
.PushBack((uint8_t)m_cecVersion
);
517 return m_processor
->Transmit(command
);
520 bool CCECBusDevice::TransmitInactiveView(void)
523 strLog
.Format("<< %s (%X) -> broadcast (F): inactive view", GetLogicalAddressName(), m_iLogicalAddress
);
524 AddLog(CEC_LOG_NOTICE
, strLog
);
527 cec_command::Format(command
, m_iLogicalAddress
, CECDEVICE_BROADCAST
, CEC_OPCODE_INACTIVE_SOURCE
);
528 command
.parameters
.PushBack((m_iPhysicalAddress
>> 8) & 0xFF);
529 command
.parameters
.PushBack(m_iPhysicalAddress
& 0xFF);
531 return m_processor
->Transmit(command
);
534 bool CCECBusDevice::TransmitMenuState(cec_logical_address dest
)
537 strLog
.Format("<< %s (%X) -> %s (%X): menu state '%s'", GetLogicalAddressName(), m_iLogicalAddress
, ToString(dest
), dest
, ToString(m_menuState
));
538 AddLog(CEC_LOG_NOTICE
, strLog
);
541 cec_command::Format(command
, m_iLogicalAddress
, dest
, CEC_OPCODE_MENU_STATUS
);
542 command
.parameters
.PushBack((uint8_t)m_menuState
);
544 return m_processor
->Transmit(command
);
547 bool CCECBusDevice::TransmitOSDName(cec_logical_address dest
)
549 CLockObject
lock(&m_mutex
);
551 strLog
.Format("<< %s (%X) -> %s (%X): OSD name '%s'", GetLogicalAddressName(), m_iLogicalAddress
, ToString(dest
), dest
, m_strDeviceName
.c_str());
552 AddLog(CEC_LOG_NOTICE
, strLog
.c_str());
555 cec_command::Format(command
, m_iLogicalAddress
, dest
, CEC_OPCODE_SET_OSD_NAME
);
556 for (unsigned int iPtr
= 0; iPtr
< m_strDeviceName
.length(); iPtr
++)
557 command
.parameters
.PushBack(m_strDeviceName
.at(iPtr
));
560 return m_processor
->Transmit(command
);
563 bool CCECBusDevice::TransmitOSDString(cec_logical_address dest
, cec_display_control duration
, const char *strMessage
)
565 CLockObject
lock(&m_mutex
);
567 strLog
.Format("<< %s (%X) -> %s (%X): display OSD message '%s'", GetLogicalAddressName(), m_iLogicalAddress
, ToString(dest
), dest
, strMessage
);
568 AddLog(CEC_LOG_NOTICE
, strLog
.c_str());
571 cec_command::Format(command
, m_iLogicalAddress
, dest
, CEC_OPCODE_SET_OSD_STRING
);
572 command
.parameters
.PushBack((uint8_t)duration
);
574 unsigned int iLen
= strlen(strMessage
);
575 if (iLen
> 13) iLen
= 13;
577 for (unsigned int iPtr
= 0; iPtr
< iLen
; iPtr
++)
578 command
.parameters
.PushBack(strMessage
[iPtr
]);
581 return m_processor
->Transmit(command
);
584 bool CCECBusDevice::TransmitPhysicalAddress(void)
586 CLockObject
lock(&m_mutex
);
588 strLog
.Format("<< %s (%X) -> broadcast (F): physical adddress %4x", GetLogicalAddressName(), m_iLogicalAddress
, m_iPhysicalAddress
);
589 AddLog(CEC_LOG_NOTICE
, strLog
.c_str());
592 cec_command::Format(command
, m_iLogicalAddress
, CECDEVICE_BROADCAST
, CEC_OPCODE_REPORT_PHYSICAL_ADDRESS
);
593 command
.parameters
.PushBack((uint8_t) ((m_iPhysicalAddress
>> 8) & 0xFF));
594 command
.parameters
.PushBack((uint8_t) (m_iPhysicalAddress
& 0xFF));
595 command
.parameters
.PushBack((uint8_t) (m_type
));
598 return m_processor
->Transmit(command
);
601 bool CCECBusDevice::TransmitPoll(cec_logical_address dest
)
604 if (dest
== CECDEVICE_UNKNOWN
)
605 dest
= m_iLogicalAddress
;
608 strLog
.Format("<< %s (%X) -> %s (%X): POLL", GetLogicalAddressName(), m_iLogicalAddress
, ToString(dest
), dest
);
609 AddLog(CEC_LOG_NOTICE
, strLog
.c_str());
612 cec_command::Format(command
, m_iLogicalAddress
, dest
, CEC_OPCODE_NONE
);
613 CLockObject
lock(&m_transmitMutex
);
615 bReturn
= m_processor
->Transmit(command
);
616 AddLog(CEC_LOG_DEBUG
, bReturn
? ">> POLL sent" : ">> POLL not sent");
620 bool CCECBusDevice::TransmitPowerState(cec_logical_address dest
)
622 CLockObject
lock(&m_mutex
);
624 strLog
.Format("<< %s (%X) -> %s (%X): %s", GetLogicalAddressName(), m_iLogicalAddress
, ToString(dest
), dest
, ToString(m_powerStatus
));
625 AddLog(CEC_LOG_NOTICE
, strLog
.c_str());
628 cec_command::Format(command
, m_iLogicalAddress
, dest
, CEC_OPCODE_REPORT_POWER_STATUS
);
629 command
.parameters
.PushBack((uint8_t) m_powerStatus
);
632 return m_processor
->Transmit(command
);
635 bool CCECBusDevice::TransmitVendorID(cec_logical_address dest
)
637 CLockObject
lock(&m_mutex
);
638 if (m_vendor
== CEC_VENDOR_UNKNOWN
)
641 strLog
.Format("<< %s (%X) -> %s (%X): vendor id feature abort", GetLogicalAddressName(), m_iLogicalAddress
, ToString(dest
), dest
);
642 AddLog(CEC_LOG_NOTICE
, strLog
);
645 m_processor
->TransmitAbort(dest
, CEC_OPCODE_GIVE_DEVICE_VENDOR_ID
);
651 strLog
.Format("<< %s (%X) -> %s (%X): vendor id %s (%x)", GetLogicalAddressName(), m_iLogicalAddress
, ToString(dest
), dest
, ToString(m_vendor
), (uint64_t)m_vendor
);
652 AddLog(CEC_LOG_NOTICE
, strLog
);
655 cec_command::Format(command
, m_iLogicalAddress
, CECDEVICE_BROADCAST
, CEC_OPCODE_DEVICE_VENDOR_ID
);
657 command
.parameters
.PushBack((uint8_t) (((uint64_t)m_vendor
>> 16) & 0xFF));
658 command
.parameters
.PushBack((uint8_t) (((uint64_t)m_vendor
>> 8) & 0xFF));
659 command
.parameters
.PushBack((uint8_t) ((uint64_t)m_vendor
& 0xFF));
662 return m_processor
->Transmit(command
);