Merge branch 'master' of github.com:tingleby/maa into tingleby-master
This commit is contained in:
17
api/maa.h
17
api/maa.h
@@ -50,7 +50,7 @@ typedef enum {
|
||||
MAA_ERROR_NO_DATA_AVAILABLE = 9, /**< No data available */
|
||||
MAA_ERROR_INVALID_PLATFORM = 10, /**< Platform not recognised */
|
||||
MAA_ERROR_PLATFORM_NOT_INITIALISED = 11, /**< Board information not initialised */
|
||||
MAA_ERROR_PLATFORM_ALREADY_INITIALISED = 12, /**< Board is already initialised
|
||||
MAA_ERROR_PLATFORM_ALREADY_INITIALISED = 12, /**< Board is already initialised */
|
||||
|
||||
MAA_ERROR_UNSPECIFIED = 99 /**< Unknown Error */
|
||||
} maa_result_t;
|
||||
@@ -185,6 +185,15 @@ unsigned int maa_check_aio(int pin);
|
||||
*/
|
||||
unsigned int maa_check_i2c();
|
||||
|
||||
/** Check PWM
|
||||
*
|
||||
* Will check input is valid for pwm and will also setup required multiplexers.
|
||||
* IF the pin also does gpio (strong chance), DO NOTHING, REV D is strange.
|
||||
* @param pin the pin as read from the board surface.
|
||||
* @return the pwm pin_info_t of that IO pin
|
||||
*/
|
||||
maa_pin_t* maa_check_pwm(int pin);
|
||||
|
||||
/** Get the version string of maa autogenerated from git tag
|
||||
*
|
||||
* The version returned may not be what is expected however it is a reliable
|
||||
@@ -193,6 +202,12 @@ unsigned int maa_check_i2c();
|
||||
*/
|
||||
const char* maa_get_version();
|
||||
|
||||
/** Print a textual representation of the maa_result_t
|
||||
*
|
||||
* @param result the result to print,
|
||||
*/
|
||||
void maa_result_print(maa_result_t result);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user