diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-25 03:26:57 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-25 03:26:57 +0000 |
commit | 8c6c27d88bb40ecf55f369fc4499ec990d2d93d2 (patch) | |
tree | 21783dc9715b4cd11b1f8ba0a19f28e562cd1805 /Demos/Host/LowLevel/StillImageHost | |
parent | c05c7c7df46a0377db8a72cb32f06aa40153d3e1 (diff) | |
download | lufa-8c6c27d88bb40ecf55f369fc4499ec990d2d93d2.tar.gz lufa-8c6c27d88bb40ecf55f369fc4499ec990d2d93d2.tar.bz2 lufa-8c6c27d88bb40ecf55f369fc4499ec990d2d93d2.zip |
Added new RNDISHost Host LowLevel demo. Fixed misnamed Pipe_SetPipeToken() macro for setting a pipe's direction. Fixed CDCHost failing on devices with bidirectional endpoints.
Diffstat (limited to 'Demos/Host/LowLevel/StillImageHost')
-rw-r--r-- | Demos/Host/LowLevel/StillImageHost/Lib/StillImageCommands.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Demos/Host/LowLevel/StillImageHost/Lib/StillImageCommands.c b/Demos/Host/LowLevel/StillImageHost/Lib/StillImageCommands.c index 4735781de..f2e4d4644 100644 --- a/Demos/Host/LowLevel/StillImageHost/Lib/StillImageCommands.c +++ b/Demos/Host/LowLevel/StillImageHost/Lib/StillImageCommands.c @@ -78,7 +78,10 @@ void SImage_SendBlockHeader(void) Pipe_Freeze();
}
-/** Function to receive a PIMA event container from the attached still image device. */
+/** Function to receive a PIMA event container from the attached still image device.
+ *
+ * \return A value from the Pipe_Stream_RW_ErrorCodes_t enum
+ /
uint8_t SImage_ReceiveEventHeader(void)
{
uint8_t ErrorCode;
@@ -99,7 +102,10 @@ uint8_t SImage_ReceiveEventHeader(void) return ErrorCode;
}
-/** Function to receive a PIMA response container from the attached still image device. */
+/** Function to receive a PIMA response container from the attached still image device.
+ *
+ * \return A value from the Pipe_Stream_RW_ErrorCodes_t enum
+ */
uint8_t SImage_ReceiveBlockHeader(void)
{
uint16_t TimeoutMSRem = COMMAND_DATA_TIMEOUT_MS;
@@ -189,6 +195,8 @@ uint8_t SImage_ReceiveBlockHeader(void) *
* \param[in] Buffer Source data buffer to send to the device
* \param[in] Bytes Number of bytes to send
+ *
+ * \return A value from the Pipe_Stream_RW_ErrorCodes_t enum
*/
uint8_t SImage_SendData(void* Buffer, uint16_t Bytes)
{
|