OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
AppleNec.h
Go to the documentation of this file.
1
13#ifndef APPLE_NEC_H
14#define APPLE_NEC_H
15
16// https://en.wikipedia.org/wiki/Apple_Remote#Technical_details
17
18// APPLE_REMOTE_VENDOR
19#define APPLE_REMOTE_VENDOR 0x043F
20
21// APPLE_REMOTE_TABLE
22enum {
25};
26
27// APPLE_REMOTE_COMMAND
28enum {
33};
34
35// APPLE_REMOTE_COMMAND
36typedef UINT16 APPLE_REMOTE_COMMAND;
37
38// APPLE_REMOTE_KEY
39enum {
56 AppleRemoteKeyPlay = 0x2F
57};
58
59#pragma pack (1)
60
61// APPLE_REMOTE_DATA_PACKAGE
62typedef PACKED struct {
64 UINT8 Vendor[11];
65
67 UINT8 CommandPage[5];
68
71 UINT64 DeviceId;
72
74 UINT8 Command[7];
75
77 UINT8 Checksum;
79
80#pragma pack ()
81
82#endif // APPLE_NEC_H
@ AppleRemoteCommandFactoryDefaults
Definition AppleNec.h:30
@ AppleRemoteCommandOriginalLowBattery
Definition AppleNec.h:31
@ AppleRemoteCommandCurrentLowBattery
Definition AppleNec.h:32
@ AppleRemoteCommandPairing
Definition AppleNec.h:29
@ AppleRemoteCommandTable
Definition AppleNec.h:23
@ AppleRemoteKeyTable
Definition AppleNec.h:24
UINT16 APPLE_REMOTE_COMMAND
Definition AppleNec.h:36
UINT8 Vendor[11]
This is always 0x43f and can be used to identify an Apple Remote.
Definition AppleNec.h:64
PACKED struct @33 APPLE_REMOTE_DATA_PACKAGE
UINT8 CommandPage[5]
0x0 for the pairing and other commands, 0xe for the different buttons
Definition AppleNec.h:67
@ AppleRemoteKeyMenu
Definition AppleNec.h:40
@ AppleRemoteKeyMenuNext
Definition AppleNec.h:53
@ AppleRemoteKeyMenuPlay
Definition AppleNec.h:52
@ AppleRemoteKeyRight
Definition AppleNec.h:42
@ AppleRemoteKeyMenuDown
Definition AppleNec.h:51
@ AppleRemoteKeyMenuUp
Definition AppleNec.h:50
@ AppleRemoteKeyPlayNext
Definition AppleNec.h:48
@ AppleRemoteKeyPlay
Play/Pause on the new remote.
Definition AppleNec.h:56
@ AppleRemoteKeyPlayPrevious
Definition AppleNec.h:49
@ AppleRemoteKeyCenter
Play/Pause/Select on the old remote.
Definition AppleNec.h:41
@ AppleRemoteKeyLeft
Definition AppleNec.h:43
@ AppleRemoteKeyPlayUp
Definition AppleNec.h:46
@ AppleRemoteKeyVolumeUp
Definition AppleNec.h:44
@ AppleRemoteKeyMenuPrevious
Definition AppleNec.h:54
@ AppleRemoteKeyPlayDown
Definition AppleNec.h:47
@ AppleRemoteKeySelect
Select on the new remote.
Definition AppleNec.h:55
@ AppleRemoteKeyVolumeDown
Definition AppleNec.h:45
UINT8 Checksum
All 32 bits added together have to equal 1.
Definition AppleNec.h:77
UINT64 DeviceId
Definition AppleNec.h:71
UINT8 Command[7]
Actual command for the Command Page.
Definition AppleNec.h:74