swc_utils.h

SPARK Wireless Core Utilities.

Copyright

Copyright (C) 2022 SPARK Microsystems International Inc. All rights reserved.

License

This source code is proprietary and subject to the SPARK Microsystems Software EULA found in this package in file EULA.txt.

Author

SPARK FW Team.

Defines

SWC_ARRAY_SIZE(a) (sizeof(a) / sizeof(*a))

Get the number of elements in an array of any types

SWC_CONCAT_8B_TO_16B(MSB, LSB) (MSB << 8 | LSB)

Concatenate two 8-bit values into a single 16-bit value