bufferGetAtIndex( ) Question
2012-04-02 by englsprogeny1
AVR GCC Atmega8 Using: Procyon AVRlib In an attempt to look into the UART_Rx buffer I make the following call: UART_Buffer[count] = bufferGetAtIndex(uartRxBuffer,1); I get the following Error: error: incompatible type for argument 1 of 'bufferGetAtIndex' ----------------------------------------------------- Looking at buffer.h: //! get a byte at the specified index in the buffer (kind of like array access) // note: this does not remove the byte that was read from the buffer unsigned char bufferGetAtIndex(cBuffer* buffer, unsigned short index); -------------------------------- from uart.c: // receive and transmit buffers cBuffer uartRxBuffer; ///< uart receive cBuffer uartTxBuffer; ///< uart transmit _____________________________________________________ I don't understand what is wrong with: uartRxBuffer (as it is type:cBuffer ) Any ideas? Thanks!