LinuxQMISDK-Lite  SLQS04.00.17
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
switype_256bit.h
Go to the documentation of this file.
1 #ifndef __H__SWITYPE_256BIT__H__
2 #define __H__SWITYPE_256BIT__H__
3 
4 /* 256 bit data type for bitmask and helper functions */
5 #define SWI_UINT256_WORD_COUNT 16
6 #define SWI_UINT256_BITS_PER_WORD 16
7 
8 #define SWI_UINT256_WORD_OFFSET(val) ((val) / SWI_UINT256_BITS_PER_WORD)
9 #define SWI_UINT256_BIT_OFFSET(val) ((val) % SWI_UINT256_BITS_PER_WORD)
10 
14 typedef struct
15 {
16  uint16_t word[SWI_UINT256_WORD_COUNT];
18 
24 void swi_uint256_set_bit(swi_uint256_t *pMask,uint8_t bit);
25 
31 void swi_uint256_clear_bit(swi_uint256_t *pMask,uint8_t bit);
32 
41 uint8_t swi_uint256_get_bit(swi_uint256_t Mask, uint8_t bit);
42 
48 
49 #define SWI_UINT256_INT_VALUE {{0}}
50 #endif //__H__SWITYPE_256BIT__H__
uint8_t swi_uint256_get_bit(swi_uint256_t Mask, uint8_t bit)
#define SWI_UINT256_WORD_COUNT
Definition: switype_256bit.h:5
void swi_uint256_clear_bit(swi_uint256_t *pMask, uint8_t bit)
void swi_uint256_print_mask(swi_uint256_t mask)
Definition: switype_256bit.h:14
void swi_uint256_set_bit(swi_uint256_t *pMask, uint8_t bit)

Copyright (c) 2011-2015 Sierra Wireless, Inc. All rights reserved