CC13xx Driver Library
[aux_smph] AUX Semaphore

Functions

static void AUXSMPHAcquire (uint32_t ui32Semaphore)
 Acquire an AUX semaphore. More...
 
static bool AUXSMPHTryAcquire (uint32_t ui32Semaphore)
 Try to acquire an AUX semaphore. More...
 
static void AUXSMPHRelease (uint32_t ui32Semaphore)
 Release an AUX semaphore by System CPU master. More...
 

Detailed Description

Function Documentation

static void AUXSMPHAcquire ( uint32_t  ui32Semaphore)
inlinestatic

Acquire an AUX semaphore.

This function acquires the given AUX semaphore, blocking the call until the semaphore is available.

Note
The semaphore can also be acquired by the dedicated Sensor Controller. The System CPU master can thus be competing for the shared resource, i.e. the specified semaphore.
Parameters
ui32Semaphoreis the semaphore number.
Returns
None
See also
AUXSMPHTryAcquire(), AUXSMPHRelease()

Definition at line 125 of file aux_smph.h.

static void AUXSMPHRelease ( uint32_t  ui32Semaphore)
inlinestatic

Release an AUX semaphore by System CPU master.

This function releases the given AUX semaphore.

Note
It is up to the application to provide the convention for clearing semaphore.
The semaphore can also be acquired by the dedicated Sensor Controller. The System CPU master can thus be competing for the shared resource, i.e. the specified semaphore.
Parameters
ui32Semaphoreis the semaphore number.
Returns
None
See also
AUXSMPHAcquire(), AUXSMPHTryAcquire()

Definition at line 231 of file aux_smph.h.

static bool AUXSMPHTryAcquire ( uint32_t  ui32Semaphore)
inlinestatic

Try to acquire an AUX semaphore.

This function tries to acquire the given AUX semaphore, if the semaphore could not be claimed the function returns false.

Note
The semaphore can also be acquired by the dedicated Sensor Controller. The System CPU master can thus be competing for the shared resource, i.e. the specified semaphore.
Parameters
ui32Semaphoreis the semaphore number.
Returns
Returns true if semaphore was acquired, false otherwise
See also
AUXSMPHAcquire(), AUXSMPHRelease()

Definition at line 177 of file aux_smph.h.

Macro Definition Documentation

#define AUX_SMPH_0   0

Definition at line 83 of file aux_smph.h.

Referenced by AUXSMPHAcquire(), AUXSMPHRelease(), and AUXSMPHTryAcquire().

#define AUX_SMPH_1   1

Definition at line 84 of file aux_smph.h.

Referenced by AUXSMPHAcquire(), AUXSMPHRelease(), and AUXSMPHTryAcquire().

#define AUX_SMPH_2   2

Definition at line 85 of file aux_smph.h.

Referenced by AUXSMPHAcquire(), AUXSMPHRelease(), and AUXSMPHTryAcquire().

#define AUX_SMPH_3   3

Definition at line 86 of file aux_smph.h.

Referenced by AUXSMPHAcquire(), AUXSMPHRelease(), and AUXSMPHTryAcquire().

#define AUX_SMPH_4   4

Definition at line 87 of file aux_smph.h.

Referenced by AUXSMPHAcquire(), AUXSMPHRelease(), and AUXSMPHTryAcquire().

#define AUX_SMPH_5   5

Definition at line 88 of file aux_smph.h.

Referenced by AUXSMPHAcquire(), AUXSMPHRelease(), and AUXSMPHTryAcquire().

#define AUX_SMPH_6   6

Definition at line 89 of file aux_smph.h.

Referenced by AUXSMPHAcquire(), AUXSMPHRelease(), and AUXSMPHTryAcquire().

#define AUX_SMPH_7   7

Definition at line 90 of file aux_smph.h.

Referenced by AUXSMPHAcquire(), AUXSMPHRelease(), and AUXSMPHTryAcquire().

#define AUX_SMPH_CLAIMED   0x00000000

Definition at line 75 of file aux_smph.h.

Referenced by AUXSMPHAcquire().

#define AUX_SMPH_FREE   0x00000001

Definition at line 74 of file aux_smph.h.

Referenced by AUXSMPHRelease(), and AUXSMPHTryAcquire().