Add StillImage Host Class Driver functions for opening and closing sessions. Ensure IsActive is set on the interface to allow device functions to run.
Fix spelling of "Received" in all source files where it is misspelt "Recieved".
This commit is contained in:
parent
205b35d131
commit
6783bc4594
20 changed files with 202 additions and 147 deletions
|
@ -80,7 +80,7 @@ void SImage_SendBlockHeader(void)
|
|||
}
|
||||
|
||||
/** Function to receive a PIMA event container from the attached still image device. */
|
||||
uint8_t SImage_RecieveEventHeader(void)
|
||||
uint8_t SImage_ReceiveEventHeader(void)
|
||||
{
|
||||
uint8_t ErrorCode;
|
||||
|
||||
|
@ -101,7 +101,7 @@ uint8_t SImage_RecieveEventHeader(void)
|
|||
}
|
||||
|
||||
/** Function to receive a PIMA response container from the attached still image device. */
|
||||
uint8_t SImage_RecieveBlockHeader(void)
|
||||
uint8_t SImage_ReceiveBlockHeader(void)
|
||||
{
|
||||
uint16_t TimeoutMSRem = COMMAND_DATA_TIMEOUT_MS;
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
uint16_t Type; /**< Container type, a value from the PIMA_Container_Types_t enum */
|
||||
uint16_t Code; /**< Command, event or response code of the container */
|
||||
uint32_t TransactionID; /**< Unique container ID to link blocks together */
|
||||
uint32_t Params[4]; /**< Block parameters to be issued along with the block code (command blocks only) */
|
||||
uint32_t Params[3]; /**< Block parameters to be issued along with the block code (command blocks only) */
|
||||
} PIMA_Container_t;
|
||||
|
||||
/* Enums: */
|
||||
|
@ -106,8 +106,8 @@
|
|||
|
||||
/* Function Prototypes: */
|
||||
void SImage_SendBlockHeader(void);
|
||||
uint8_t SImage_RecieveBlockHeader(void);
|
||||
uint8_t SImage_RecieveEventHeader(void);
|
||||
uint8_t SImage_ReceiveBlockHeader(void);
|
||||
uint8_t SImage_ReceiveEventHeader(void);
|
||||
uint8_t SImage_SendData(void* Buffer, uint16_t Bytes);
|
||||
uint8_t SImage_ReadData(void* Buffer, uint16_t Bytes);
|
||||
bool SImage_IsEventReceived(void);
|
||||
|
|
|
@ -189,7 +189,7 @@ void StillImage_Task(void)
|
|||
SImage_SendBlockHeader();
|
||||
|
||||
/* Receive the response data block */
|
||||
if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_NoError)
|
||||
if ((ErrorCode = SImage_ReceiveBlockHeader()) != PIPE_RWSTREAM_NoError)
|
||||
{
|
||||
ShowCommandError(ErrorCode, false);
|
||||
|
||||
|
@ -242,7 +242,7 @@ void StillImage_Task(void)
|
|||
printf_P(PSTR(" Device Version: %s\r\n"), DeviceVersion);
|
||||
|
||||
/* Receive the final response block from the device */
|
||||
if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_NoError)
|
||||
if ((ErrorCode = SImage_ReceiveBlockHeader()) != PIPE_RWSTREAM_NoError)
|
||||
{
|
||||
ShowCommandError(ErrorCode, false);
|
||||
|
||||
|
@ -274,7 +274,7 @@ void StillImage_Task(void)
|
|||
SImage_SendBlockHeader();
|
||||
|
||||
/* Receive the response block from the device */
|
||||
if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_NoError)
|
||||
if ((ErrorCode = SImage_ReceiveBlockHeader()) != PIPE_RWSTREAM_NoError)
|
||||
{
|
||||
ShowCommandError(ErrorCode, false);
|
||||
|
||||
|
@ -306,7 +306,7 @@ void StillImage_Task(void)
|
|||
SImage_SendBlockHeader();
|
||||
|
||||
/* Receive the response block from the device */
|
||||
if ((ErrorCode = SImage_RecieveBlockHeader()) != PIPE_RWSTREAM_NoError)
|
||||
if ((ErrorCode = SImage_ReceiveBlockHeader()) != PIPE_RWSTREAM_NoError)
|
||||
{
|
||||
ShowCommandError(ErrorCode, false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue