44 kCommandState_CommandPhase,
45 kCommandState_DataPhase,
46 kCommandState_DataPhaseRead,
47 kCommandState_DataPhaseWrite
50 typedef enum _buspal_state
59 typedef struct ConfigI2cCmdPacket
67 typedef struct CommandHandlerEntry
69 void (*handleCommand)(uint8_t *packet, uint32_t packetLength);
70 status_t (*handleData)(
bool *hasMoreData);
74 typedef struct CommandProcessorData
78 uint32_t packetLength;
84 uint32_t dataBytesAvailable;
92 typedef struct CommandInterface
111 #if defined(__cplusplus) 113 #endif // __cplusplus 123 #if defined(__cplusplus) 125 #endif // __cplusplus 129 #endif // _command.h_ command_interface_t g_commandInterface
Default command interface.
Definition: bl_command.c:207
_command_state
Command state machine states.
Definition: bl_command.h:42
Format of command handler entry.
Definition: bl_command.h:49
uint32_t address
Parameter 0: i2c slave address.
Definition: command.h:62
command_packet_t commandPacket
header
Definition: command.h:61
Command packet format.
Definition: command_packet.h:113
Command processor data format.
Definition: bl_command.h:56
uint32_t speed
Parameter 1: i2c speed in kHz.
Definition: command.h:63
int32_t status_t
Type used for all status and error return values.
Definition: fsl_common.h:121
status_t bootloader_command_pump(void)
Pump the command state machine.
Definition: bl_command.c:224
Interface to command processor operations.
Definition: bl_command.h:95
status_t bootloader_command_init(void)
Initialize the command processor component.
Definition: bl_command.c:215