mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
fixed line endings - mixed LF and CR+LF present - please keep it to either one of those or my editor gets crazy
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2446 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
4181d1de05
commit
b4fdd67b4b
@ -96,7 +96,7 @@ static void updateAck(UAVObjHandle obj, uint16_t instId);
|
||||
* Initialize the UAVTalk library
|
||||
* \param[in] outputStream Function pointer that is called to send a data buffer
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t UAVTalkInitialize(UAVTalkOutputStream outputStream)
|
||||
{
|
||||
@ -111,7 +111,7 @@ int32_t UAVTalkInitialize(UAVTalkOutputStream outputStream)
|
||||
|
||||
/**
|
||||
* Get communication statistics counters
|
||||
* @param[out] statsOut Statistics counters
|
||||
* @param[out] statsOut Statistics counters
|
||||
*/
|
||||
void UAVTalkGetStats(UAVTalkStats* statsOut)
|
||||
{
|
||||
@ -126,7 +126,7 @@ void UAVTalkGetStats(UAVTalkStats* statsOut)
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset the statistics counters.
|
||||
* Reset the statistics counters.
|
||||
*/
|
||||
void UAVTalkResetStats()
|
||||
{
|
||||
@ -147,7 +147,7 @@ void UAVTalkResetStats()
|
||||
* \param[in] instId The instance ID or UAVOBJ_ALL_INSTANCES for all instances.
|
||||
* \param[in] timeout Time to wait for the response, when zero it will return immediately
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t UAVTalkSendObjectRequest(UAVObjHandle obj, uint16_t instId, int32_t timeout)
|
||||
{
|
||||
@ -161,7 +161,7 @@ int32_t UAVTalkSendObjectRequest(UAVObjHandle obj, uint16_t instId, int32_t time
|
||||
* \param[in] acked Selects if an ack is required (1:ack required, 0: ack not required)
|
||||
* \param[in] timeoutMs Time to wait for the ack, when zero it will return immediately
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
* \return -1 Failure
|
||||
*/
|
||||
int32_t UAVTalkSendObject(UAVObjHandle obj, uint16_t instId, uint8_t acked, int32_t timeoutMs)
|
||||
{
|
||||
@ -185,7 +185,7 @@ int32_t UAVTalkSendObject(UAVObjHandle obj, uint16_t instId, uint8_t acked, int3
|
||||
* TYPE_OBJ_REQ: request object update
|
||||
* TYPE_OBJ_ACK: send object with an ack
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
* \return -1 Failure
|
||||
*/
|
||||
static int32_t objectTransaction(UAVObjHandle obj, uint16_t instId, uint8_t type, int32_t timeoutMs)
|
||||
{
|
||||
@ -456,7 +456,7 @@ int32_t UAVTalkProcessInputStream(uint8_t rxbyte)
|
||||
* \param[in] data Data buffer
|
||||
* \param[in] length Buffer length
|
||||
* \return 0 Success
|
||||
* \return -1 Failure
|
||||
* \return -1 Failure
|
||||
*/
|
||||
static int32_t receiveObject(uint8_t type, UAVObjHandle obj, uint16_t instId, uint8_t* data, int32_t length)
|
||||
{
|
||||
@ -522,7 +522,7 @@ static int32_t receiveObject(uint8_t type, UAVObjHandle obj, uint16_t instId, ui
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if an ack is pending on an object and give response semaphore
|
||||
* Check if an ack is pending on an object and give response semaphore
|
||||
*/
|
||||
static void updateAck(UAVObjHandle obj, uint16_t instId)
|
||||
{
|
||||
@ -709,5 +709,5 @@ static uint8_t updateCRC(uint8_t crc, const uint8_t* data, int32_t length)
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
* @}
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user