Private
Public Access
2
0

mraa.c: Added mainn and sub-platform select API calls.

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Henry Bruce
2015-07-27 09:32:39 -07:00
committed by Brendan Le Foll
parent 99593ec640
commit 7058fea8bd
2 changed files with 88 additions and 43 deletions

View File

@@ -150,13 +150,6 @@ void mraa_result_print(mraa_result_t result);
*/
mraa_platform_t mraa_get_platform_type();
/**
* Get sub platform type, board must be initialised.
*
* @return mraa_platform_t Platform type enum
*/
mraa_platform_t mraa_get_sub_platform_type();
/**
* Get platform pincount, board must be initialised.
*
@@ -195,6 +188,27 @@ char* mraa_get_pin_name(int pin);
*/
int mraa_get_default_2c_bus();
/**
* Select main platform for platform info calls.
*
* @return mraa_boolean_t 1 if main platform is available, 0 otherwise
*/
mraa_boolean_t mraa_select_main_platform();
/**
* Select sub platform for platform info calls.
*
* @return mraa_boolean_t 1 if sub platform is available, 0 otherwise
*/
mraa_boolean_t mraa_select_sub_platform();
/**
* Check if sub platform is currently available and selected for platform info calls.
*
* @return mraa_boolean_t 1 if sub platform is selected, 0 otherwise
*/
mraa_boolean_t mraa_is_sub_platform_selected();
/**
* Check if pin or bus id includes sub platform mask.
*