Main Page
Namespaces
Namespace List
Namespace Members
All
Functions
Typedefs
Enumerations
Classes
Class List
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Functions
a
c
d
e
f
g
i
l
m
o
p
r
s
t
u
w
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
c
d
f
g
i
m
n
s
t
u
Functions
m
s
t
Variables
Typedefs
d
f
i
s
u
Enumerations
_
Enumerator
s
Macros
_
c
f
i
n
s
t
external
sbgECom
src
commands
sbgEComCmdLicense.c
Go to the documentation of this file.
1
#include "
sbgEComCmdLicense.h
"
2
#include "
transfer/sbgEComTransfer.h
"
3
4
//----------------------------------------------------------------------//
5
//- License commands -//
6
//----------------------------------------------------------------------//
7
16
SbgErrorCode
sbgEComCmdLicenseApply
(
SbgEComHandle
*pHandle,
const
void
*pBuffer,
size_t
size)
17
{
18
SbgErrorCode
errorCode;
19
uint32_t currentTimeOut;
20
21
assert(pHandle);
22
assert(pBuffer);
23
assert(size > 0);
24
25
//
26
// Define a time out of 10s to let enough time for the GNSS receiver to apply the license
27
//
28
currentTimeOut = pHandle->
cmdDefaultTimeOut
;
29
pHandle->
cmdDefaultTimeOut
= 10000;
30
31
//
32
// Call function that handle data transfer
33
//
34
errorCode =
sbgEComTransferSend
(pHandle,
SBG_ECOM_CLASS_LOG_CMD_0
,
SBG_ECOM_CMD_LICENSE_APPLY
, pBuffer, size);
35
36
//
37
// Restore the default time out
38
//
39
pHandle->
cmdDefaultTimeOut
= currentTimeOut;
40
41
return
errorCode;
42
}
sbgEComCmdLicense.h
sbgEComCmdLicenseApply
SbgErrorCode sbgEComCmdLicenseApply(SbgEComHandle *pHandle, const void *pBuffer, size_t size)
This file implements SbgECom commands related to licenses.
Definition:
sbgEComCmdLicense.c:16
sbgEComTransfer.h
SBG_ECOM_CMD_LICENSE_APPLY
@ SBG_ECOM_CMD_LICENSE_APPLY
Definition:
sbgEComIds.h:256
SBG_ECOM_CLASS_LOG_CMD_0
@ SBG_ECOM_CLASS_LOG_CMD_0
Definition:
sbgEComIds.h:59
_SbgEComHandle::cmdDefaultTimeOut
uint32_t cmdDefaultTimeOut
Definition:
sbgECom.h:78
_SbgEComHandle
Definition:
sbgECom.h:70
sbgEComTransferSend
SbgErrorCode sbgEComTransferSend(SbgEComHandle *pHandle, uint8_t msgClass, uint8_t msg, const void *pBuffer, size_t size)
Definition:
sbgEComTransfer.c:484
SbgErrorCode
enum _SbgErrorCode SbgErrorCode
Header file that defines all error codes for SBG Systems libraries.
sbg_driver
Author(s): SBG Systems
autogenerated on Fri Oct 11 2024 02:13:40