X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/071e02c6b6b4837fa9cf0b6d4c749994e02638d7..a8871c7fba73307226bd13e2cad4c840c850e6f1:/Demos/Host/LowLevel/StillImageHost/Lib/StillImageCommands.h diff --git a/Demos/Host/LowLevel/StillImageHost/Lib/StillImageCommands.h b/Demos/Host/LowLevel/StillImageHost/Lib/StillImageCommands.h index f309abf1b..f2bb18953 100644 --- a/Demos/Host/LowLevel/StillImageHost/Lib/StillImageCommands.h +++ b/Demos/Host/LowLevel/StillImageHost/Lib/StillImageCommands.h @@ -40,24 +40,16 @@ #include #include "PIMACodes.h" + #include "../StillImageHost.h" - /* Macros: */ - /** Pipe number of the Still Image data IN pipe */ - #define SIMAGE_DATA_IN_PIPE 0x01 - - /** Pipe number of the Still Image data OUT pipe */ - #define SIMAGE_DATA_OUT_PIPE 0x02 - - /** Pipe number of the Still Image events pipe */ - #define SIMAGE_EVENTS_PIPE 0x03 - - /** Length in bytes of a given Unicode string's character length + /* Macros: */ + /** Length in bytes of a given Unicode string's character length. * * \param[in] chars Total number of Unicode characters in the string */ #define UNICODE_STRING_LENGTH(chars) ((chars) << 1) - /** Timeout period between the issuing of a command to a device, and the reception of the first packet */ + /** Timeout period between the issuing of a command to a device, and the reception of the first packet. */ #define COMMAND_DATA_TIMEOUT_MS 10000 /** Used in the DataLength field of a PIMA container, to give the total container size in bytes for @@ -108,8 +100,10 @@ void SImage_SendBlockHeader(void); uint8_t SImage_ReceiveBlockHeader(void); uint8_t SImage_ReceiveEventHeader(void); - uint8_t SImage_SendData(void* const Buffer, const uint16_t Bytes); - uint8_t SImage_ReadData(void* const Buffer, const uint16_t Bytes); + uint8_t SImage_SendData(void* const Buffer, + const uint16_t Bytes); + uint8_t SImage_ReadData(void* const Buffer, + const uint16_t Bytes); bool SImage_IsEventReceived(void); #endif