TianoCore EDK2 master
Loading...
Searching...
No Matches
I2cMaster.h
Go to the documentation of this file.
1
15#ifndef __I2C_MASTER_H__
16#define __I2C_MASTER_H__
17
18#include <Pi/PiI2c.h>
19
20#define EFI_I2C_MASTER_PROTOCOL_GUID { 0xcd72881f, 0x45b5, 0x4feb, { 0x98, 0xc8, 0x31, 0x3d, 0xa8, 0x11, 0x74, 0x62 }}
21
23
49typedef
53 IN OUT UINTN *BusClockHertz
54 );
55
71typedef
75 );
76
144typedef
148 IN UINTN SlaveAddress,
149 IN EFI_I2C_REQUEST_PACKET *RequestPacket,
150 IN EFI_EVENT Event OPTIONAL,
151 OUT EFI_STATUS *I2cStatus OPTIONAL
152 );
153
166
171
176
182};
183
184extern EFI_GUID gEfiI2cMasterProtocolGuid;
185
186#endif // __I2C_MASTER_H__
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define OPTIONAL
Definition: Base.h:290
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS(EFIAPI * EFI_I2C_MASTER_PROTOCOL_START_REQUEST)(IN CONST EFI_I2C_MASTER_PROTOCOL *This, IN UINTN SlaveAddress, IN EFI_I2C_REQUEST_PACKET *RequestPacket, IN EFI_EVENT Event OPTIONAL, OUT EFI_STATUS *I2cStatus OPTIONAL)
Definition: I2cMaster.h:146
EFI_STATUS(EFIAPI * EFI_I2C_MASTER_PROTOCOL_SET_BUS_FREQUENCY)(IN CONST EFI_I2C_MASTER_PROTOCOL *This, IN OUT UINTN *BusClockHertz)
Definition: I2cMaster.h:51
EFI_STATUS(EFIAPI * EFI_I2C_MASTER_PROTOCOL_RESET)(IN CONST EFI_I2C_MASTER_PROTOCOL *This)
Definition: I2cMaster.h:73
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_EVENT
Definition: UefiBaseType.h:37
EFI_I2C_MASTER_PROTOCOL_SET_BUS_FREQUENCY SetBusFrequency
Definition: I2cMaster.h:165
EFI_I2C_MASTER_PROTOCOL_RESET Reset
Definition: I2cMaster.h:170
EFI_I2C_MASTER_PROTOCOL_START_REQUEST StartRequest
Definition: I2cMaster.h:175
CONST EFI_I2C_CONTROLLER_CAPABILITIES * I2cControllerCapabilities
Definition: I2cMaster.h:181
Definition: Base.h:213