Added const modifiers to device mode class drivers.
Added parameter directions to function parameter documentation. Added new experimental FAST_STREAM_FUNCTIONS compile time option to speed up stream transfers at the expense of a higher FLASH consumption (needs testing to verify improved throughput).
This commit is contained in:
		
							parent
							
								
									3cbdcd3686
								
							
						
					
					
						commit
						f1076ac4d6
					
				
					 115 changed files with 1031 additions and 633 deletions
				
			
		| 
						 | 
				
			
			@ -190,8 +190,8 @@ uint8_t SImage_RecieveBlockHeader(void)
 | 
			
		|||
 | 
			
		||||
/** Function to send the given data to the device, after a command block has been issued.
 | 
			
		||||
 *
 | 
			
		||||
 *  \param Buffer  Source data buffer to send to the device
 | 
			
		||||
 *  \param Bytes   Number of bytes to send
 | 
			
		||||
 *  \param[in] Buffer  Source data buffer to send to the device
 | 
			
		||||
 *  \param[in] Bytes   Number of bytes to send
 | 
			
		||||
 */
 | 
			
		||||
void SImage_SendData(void* Buffer, uint16_t Bytes)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -211,8 +211,8 @@ void SImage_SendData(void* Buffer, uint16_t Bytes)
 | 
			
		|||
 | 
			
		||||
/** Function to receive the given data to the device, after a response block has been received.
 | 
			
		||||
 *
 | 
			
		||||
 *  \param Buffer  Destination data buffer to put read bytes from the device
 | 
			
		||||
 *  \param Bytes   Number of bytes to receive
 | 
			
		||||
 *  \param[out] Buffer  Destination data buffer to put read bytes from the device
 | 
			
		||||
 *  \param[in] Bytes    Number of bytes to receive
 | 
			
		||||
 *
 | 
			
		||||
 *  \return A value from the Pipe_Stream_RW_ErrorCodes_t enum
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			@ -257,7 +257,7 @@ bool SImage_IsEventReceived(void)
 | 
			
		|||
 | 
			
		||||
/** Clears the stall condition in the attached device on the nominated endpoint number.
 | 
			
		||||
 *
 | 
			
		||||
 *  \param EndpointNum  Endpoint number in the attached device whose stall condition is to be cleared
 | 
			
		||||
 *  \param[in] EndpointNum  Endpoint number in the attached device whose stall condition is to be cleared
 | 
			
		||||
 *
 | 
			
		||||
 *  \return A value from the USB_Host_SendControlErrorCodes_t enum
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -57,7 +57,7 @@
 | 
			
		|||
		/** Used in the DataLength field of a PIMA container, to give the total container size in bytes for
 | 
			
		||||
		 *  a command container.
 | 
			
		||||
		 *
 | 
			
		||||
		 *  \param params  Number of parameters which are to be sent in the Param field of the container
 | 
			
		||||
		 *  \param[in] params  Number of parameters which are to be sent in the Param field of the container
 | 
			
		||||
		 */
 | 
			
		||||
		#define PIMA_COMMAND_SIZE(params)      ((sizeof(PIMA_SendBlock) - sizeof(PIMA_SendBlock.Params)) + \
 | 
			
		||||
		                                        (params * sizeof(PIMA_SendBlock.Params[0])))
 | 
			
		||||
| 
						 | 
				
			
			@ -65,7 +65,7 @@
 | 
			
		|||
		/** Used in the DataLength field of a PIMA container, to give the total container size in bytes for
 | 
			
		||||
		 *  a data container.
 | 
			
		||||
		 *
 | 
			
		||||
		 *  \param datalen  Length in bytes of the data in the container
 | 
			
		||||
		 *  \param[in] datalen  Length in bytes of the data in the container
 | 
			
		||||
		 */
 | 
			
		||||
		#define PIMA_DATA_SIZE(datalen)        ((sizeof(PIMA_SendBlock) - sizeof(PIMA_SendBlock.Params)) + datalen)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue