STC15W408AS library 0.9.0
Macros | Functions
ChipID

Macros

#define CHIP_ID_SIZE   7
 Size of chip id array. More...
 
#define CHIP_ID_ADDR_ROM   0x1ff9
 Chip id address in flash memory.
 
#define get_chipid(cid)
 Get chip id as array. Array size is ID_SIZE. More...
 

Functions

__code __at (CHIP_ID_ADDR_ROM) uint8_t chip_id
 First byte of chip id in flash. More...
 

Detailed Description

Functions and data structures related to chip id

Author
Michael Golovanov

Macro Definition Documentation

◆ CHIP_ID_SIZE

#define CHIP_ID_SIZE   7

Size of chip id array.

<>

◆ get_chipid

#define get_chipid (   cid)
Value:
{ \
const uint8_t *id = &chip_id; \
for(uint8_t i = 0; i < CHIP_ID_SIZE; i++) \
{ \
cid[i] = id[i]; \
} \
}
#define CHIP_ID_SIZE
Size of chip id array.
Definition: chip_id.h:20

Get chip id as array. Array size is ID_SIZE.

Parameters
cidarray of CHIP_ID_SIZE
Returns
filled chip id array

Function Documentation

◆ __at()

__code __at ( CHIP_ID_ADDR_ROM  )

First byte of chip id in flash.

Size of chip id is CHIP_ID_SIZE