23 #include "fsl_os_abstraction.h"
26 #define CI_PACKET_MARKER (0x7E)
110 #define CI_ALLOC_MEM_ZERO(x) _lwmem_alloc_system_zero(x)
111 #define CI_FREE_MEM(x) _lwmem_free(x)
113 #define CI_ALLOC_MEM_ZERO(x) OSA_MemAllocZero(x)
114 #define CI_FREE_MEM(x) OSA_MemFree(x)
116 #define CI_COPY_MEM(src, dest, size) isf_mem_copy(src, dest, size)
121 #define ci_get_protocol_id() ((uint8)ci_rx_packet.pRxbuf[CI_PROTOCOL_ID_INDEX])
ci_recv_state_t
States for receiving a packet.
ci_packet_recv_status_t
Packet received status.
volatile uint32 bytesLeft
Internal transmit state.
Command Interpreter (CI) Protocol header file.
void task_ci(uint32 initial_data)
Command Interpreter Task - main task to handle communication via mailboxes with the host...
Transmitter state: Send packet marker.
This structure holds information to receive a packet of data to the host. CI will fill the structure ...
Receiver state: Waiting for a packet marker.
volatile uint8 * pRxbuf
Expected packet size.
volatile uint8 packetSize
Mailbox index.
volatile ci_tx_state_t txState
volatile uint8 mbIndex
Internal receive state.
ci_escape_state_enum
States for encoding/decoding escape characters.
isf_status_t ci_send_packet(uint32 anumBytes, uint8 *apSrc)
CI send packet - main function to send data to host.
ci_tx_state_t
States for sending a packet.
volatile uint8 * pTxbuf
How many bytes left to transfered.
This structure holds information to send a packet of data to the host. A task will fill the structure...
Main ISF header file. Contains code common to all ISF components.
Transmitter state: Send packet data.
int32 isf_status_t
ISF return status type.
Transmitter state: Send end marker.
Receiver state: Receiving data payload.
volatile ci_recv_state_t rxState