/***************************************************************************** * FUNCTION: RawSetByteROM * * RETURNS: True if successful, else FALSE * * PARAMS: * rawId - RAW ID * pBuffer - Buffer containing bytes to write * length - number of bytes to read * * NOTES: Reads bytes from the RAW engine. Same as RawSetByte except * using a ROM pointer instead of RAM pointer *****************************************************************************/ void RawSetByteROM(UINT16 rawId, ROM UINT8 *pBuffer, UINT16 length) { UINT8 regId; regId = (rawId==RAW_ID_0)?RAW_0_DATA_REG:RAW_1_DATA_REG; WriteWFROMArray(regId, pBuffer, length); }
/***************************************************************************** * FUNCTION: RawSetByteROM * * RETURNS: True if successful, else FALSE * * PARAMS: * rawId - RAW ID * pBuffer - Buffer containing bytes to write * length - number of bytes to read * * NOTES: Reads bytes from the RAW engine. Same as RawSetByte except * using a ROM pointer instead of RAM pointer *****************************************************************************/ void RawSetByteROM(UINT16 rawId, ROM UINT8 *pBuffer, UINT16 length) { UINT8 regId; regId = g_RawDataReg[rawId]; WriteWFROMArray(regId, pBuffer, length); }
/***************************************************************************** * FUNCTION: RawSetByteROM * * RETURNS: True if successful, else false * * PARAMS: * rawId - RAW ID * pBuffer - Buffer containing bytes to write * length - number of bytes to read * * NOTES: Reads bytes from the RAW engine. Same as RawSetByte except * using a ROM pointer instead of RAM pointer *****************************************************************************/ void RawSetByteROM(uint16_t rawId, ROM uint8_t *pBuffer, uint16_t length) { uint8_t regId; regId = (rawId==RAW_ID_0) ? RAW_0_DATA_REG:RAW_1_DATA_REG; WriteWFROMArray(regId, pBuffer, length); }