diff --git a/api/include/oscc.h b/api/include/oscc.h index 2d56f9ac..c9907a50 100644 --- a/api/include/oscc.h +++ b/api/include/oscc.h @@ -100,6 +100,72 @@ oscc_result_t oscc_enable( void ); oscc_result_t oscc_disable( void ); +/** + * @brief Send enable command to brake module. + * + * @param [void] + * + * @return OSCC_ERROR or OSCC_OK + * + */ +oscc_result_t oscc_enable_brakes( void ); + + +/** + * @brief Send enable command to steering module. + * + * @param [void] + * + * @return OSCC_ERROR or OSCC_OK + * + */ +oscc_result_t oscc_enable_steering( void ); + + +/** + * @brief Send enable command to throttle module. + * + * @param [void] + * + * @return OSCC_ERROR or OSCC_OK + * + */ +oscc_result_t oscc_enable_throttle( void ); + + +/** + * @brief Send disable command to brake module. + * + * @param [void] + * + * @return OSCC_ERROR or OSCC_OK + * + */ +oscc_result_t oscc_disable_brakes( void ); + + +/** + * @brief Send disable command to steering module. + * + * @param [void] + * + * @return OSCC_ERROR or OSCC_OK + * + */ +oscc_result_t oscc_disable_steering( void ); + + +/** + * @brief Send disable command to throttle module. + * + * @param [void] + * + * @return OSCC_ERROR or OSCC_OK + * + */ +oscc_result_t oscc_disable_throttle( void ); + + /** * @brief Publish message with requested brake pedal position to * brake module. diff --git a/api/src/internal/oscc.h b/api/src/internal/oscc.h index b9ca2576..be48b575 100644 --- a/api/src/internal/oscc.h +++ b/api/src/internal/oscc.h @@ -56,24 +56,6 @@ oscc_result_t oscc_can_write( void *msg, unsigned int dlc ); -oscc_result_t oscc_enable_brakes( - void ); - -oscc_result_t oscc_enable_steering( - void ); - -oscc_result_t oscc_enable_throttle( - void ); - -oscc_result_t oscc_disable_brakes( - void ); - -oscc_result_t oscc_disable_steering( - void ); - -oscc_result_t oscc_disable_throttle( - void ); - void oscc_update_status( ); oscc_result_t register_can_signal();