librpipGetBoardID

uint32_t librpipGetBoardID(void);

Description

This function returns the board ID that librpip based its hardware detection on. Probably only of interest if auto detect was used in librpipInit.

Parameters

None

Returns

The librpip Board ID. Compare to LIBRPIP_BOARD_* to work out what particular board. Note that librpip does not try to maintain every rPi board that has ever existed, rather a reduced set of boards with distinct features.

Example

Initialise librpip with board auto detect and then see if a Raspberry Pi A was detected:

uint32_t feature_set;
feature_set = librpipInit(LIBRPIP_BOARD_DETECT, LIBRPIP_FLAG_DEBUG_ON, 0);
if(librpipGetBoardID()==LIBRPIP_BOARD_PI_A) { /* running on a rPi model A! */ }
librpipClose();