image/svg+xml
Brteve's API for EveApps
Version 0.0.1
The reference document for common folder of EveApps project.
 
Loading...
Searching...
No Matches
EVE_Cmd.h
Go to the documentation of this file.
1
36#ifndef EVE_CMD__H
37#define EVE_CMD__H
38#include "EVE_HalDefs.h"
39
40/********************
41** COPROCESSOR CMD **
42********************/
43
44#define EVE_CMD_STRING_MAX 511
45
49
54
59
60/* Begin writing a function, keeps the transfer open. */
64
65/* End writing a function, closes the transfer */
67
72
77
82EVE_HAL_EXPORT uint32_t EVE_Cmd_wrString(EVE_HalContext *phost, const char *str, uint32_t maxLength);
83
89
96
102
103/* Move the write pointer forward by the specified number of bytes.
104Returns the previous write pointer */
106
110
111/* Wait for the command buffer to have at least the requested amount of free space.
112Returns 0 in case a coprocessor fault occurred */
114
118
119/* Wait for a 32-bit value that was set by `EVE_CoCmd_memWrite32(phost, ptr, value)`.
120Returns true when the value is found. Returns false otherwise
121when the coprocessor has flushed, or a coprocessor fault occured. */
123
124/* Restore the internal state of EVE_Cmd.
125Call this after manually writing the the coprocessor buffer */
127
128#endif /* #ifndef EVE_HAL_INCL__H */
129
130/* end of file */
EVE_HAL_EXPORT bool EVE_Cmd_wrMem(EVE_HalContext *phost, const uint8_t *buffer, uint32_t size)
Write buffer to Coprocessor's comand fifo.
Definition EVE_Cmd.c:291
EVE_HAL_EXPORT bool EVE_Cmd_wr16(EVE_HalContext *phost, uint16_t value)
Write 2 bytes to Coprocessor's command fifo.
Definition EVE_Cmd.c:366
EVE_HAL_EXPORT uint16_t EVE_Cmd_space(EVE_HalContext *phost)
Get free space of Coprocessor's command buffer.
Definition EVE_Cmd.c:105
EVE_HAL_EXPORT uint32_t EVE_Cmd_wrString(EVE_HalContext *phost, const char *str, uint32_t maxLength)
Write a string into Coprocessor's command fifo.
Definition EVE_Cmd.c:322
EVE_HAL_EXPORT uint16_t EVE_Cmd_moveWp(EVE_HalContext *phost, uint16_t bytes)
Move the write pointer forward by the specified number of bytes. Returns the previous write pointer.
Definition EVE_Cmd.c:446
EVE_HAL_EXPORT uint32_t EVE_Cmd_waitSpace(EVE_HalContext *phost, uint32_t size)
Definition EVE_Cmd.c:580
EVE_HAL_EXPORT bool EVE_Cmd_wr8(EVE_HalContext *phost, uint8_t value)
Write a byte to Coprocessor's command fifo.
Definition EVE_Cmd.c:339
EVE_HAL_EXPORT bool EVE_Cmd_waitFlush(EVE_HalContext *phost)
Wait till Command FIFO buffer empty.
Definition Gpu_Hal.cpp:775
EVE_HAL_EXPORT void EVE_Cmd_startFunc(EVE_HalContext *phost)
Begin writing a function, keeps the transfer open.
Definition EVE_Cmd.c:262
EVE_HAL_EXPORT bool EVE_Cmd_waitRead32(EVE_HalContext *phost, uint32_t ptr, uint32_t value)
Definition EVE_Cmd.c:651
EVE_HAL_EXPORT uint16_t EVE_Cmd_rp(EVE_HalContext *phost)
Read from Coprocessor.
Definition EVE_Cmd.c:64
EVE_HAL_EXPORT void EVE_Cmd_endFunc(EVE_HalContext *phost)
End writing a function, closes the transfer.
Definition EVE_Cmd.c:274
EVE_HAL_EXPORT uint16_t EVE_Cmd_wp(EVE_HalContext *phost)
Write to Coprocessor.
Definition EVE_Cmd.c:80
EVE_HAL_EXPORT bool EVE_Cmd_wr32(EVE_HalContext *phost, uint32_t value)
Write 4 bytes to Coprocessor's command fifo.
Definition EVE_Cmd.c:394
EVE_HAL_EXPORT void EVE_Cmd_restore(EVE_HalContext *phost)
Definition EVE_Cmd.c:682
EVE_HAL_EXPORT bool EVE_Cmd_waitLogo(EVE_HalContext *phost)
Wait until Coprocessor finished logo animation.
Definition EVE_Cmd.c:625
EVE_HAL_EXPORT bool EVE_Cmd_wrProgMem(EVE_HalContext *phost, eve_progmem_const uint8_t *buffer, uint32_t size)
Write buffer in ProgMem to Coprocessor's comand fifo.
Definition EVE_Cmd.c:307
#define EVE_HAL_EXPORT
#define eve_progmem_const
Eve_Hal framework APIs.
unsigned short uint16_t
unsigned int uint32_t
unsigned char uint8_t
static ft_uint32_t ft_uint8_t * buffer
Definition FT_Gpu_Hal.h:139