GaIA BIOS Library
Loading...
Searching...
No Matches
GaIA Version Identification functions

Functions to identify the GaIA Controller version and the expansion boards installed. More...

Functions

int gwa_get_serno_details (serno_details_t *details)
 Serial number details.
int gwa_get_serial_value (uint32_t *serno)
 Returns the serial number value of this board.
const char * gwa_get_serial_number (void)
 Returns the serial number of this board.
const char * gwa_get_product (void)
 Returns the product name of this board.
const uint8_t * gwa_get_mac_addr (uint8_t mac_number)
 Returns the MAC address of the board.
uint16_t gwa_get_hw_revision (void)
 Returns the hardware revision number.
uint32_t gwa_get_hw_revision_idx (void)
 Returns the hardware revision number array index.

Detailed Description

Functions to identify the GaIA Controller version and the expansion boards installed.

Function Documentation

◆ gwa_get_hw_revision()

uint16_t gwa_get_hw_revision ( void )

Returns the hardware revision number.

Returns
the hardware revision number.

◆ gwa_get_hw_revision_idx()

uint32_t gwa_get_hw_revision_idx ( void )

Returns the hardware revision number array index.

Returns
the hardware revision number array index.

◆ gwa_get_mac_addr()

const uint8_t * gwa_get_mac_addr ( uint8_t mac_number)

Returns the MAC address of the board.

Parameters
mac_number- interface number for the mac address.
Returns
a 6-byte array containing the MAC address of the board.

◆ gwa_get_product()

const char * gwa_get_product ( void )

Returns the product name of this board.

Returns
the 8-character product name string of this board.

◆ gwa_get_serial_number()

const char * gwa_get_serial_number ( void )

Returns the serial number of this board.

Returns
the 12-character serial number string of this board.

◆ gwa_get_serial_value()

int gwa_get_serial_value ( uint32_t * serno)

Returns the serial number value of this board.

Parameters
sernobuffer to store the serial number.
Returns
the serial number of this board converted into a 32 bit unsigned integer.