Description

u32_get_art_no() returns the article number of the hardware variant. This number uniquely identifies the hardware type and is set by the factory. This value is read only.

Syntax

u32_get_art_no();

Parameters

none

Returns

uint32_t – the article number of the device.

Example Code

This example shows how to read the ‘article number’ value of the bootloader settings.

void setup()
{  
  Serial.begin();
  while (!Serial) 
  {
    yield(); // wait for PC CAN2SER-monitor to open 
  }
  
  Serial.println("Current bootloader settings:");
  Serial.println(" - article number:  "+ String( BOOTLOADER_SETTING.u32_get_art_no() ));

}

void loop () 
{
}

Notes and Warnings

This method returns the RAM copy value of the bootloader settings which are copied into the BOOTLOADER_SETTING object during its instantiation at system start (variant.cpp).

See also

s_get_sernNo()
SAMC21_CAN