- #include "kb_machblue_client.h"
- #if MB_PLAYER_1_2
- #include "machblue_customer.h"
- #include "machblue_defines.h"
- #include "machblue_studio_defines.h"
- /**
- * @brief The Studio porting layer initialization.
- *
- * The Studio porting layer initialization.
- *
- * @return @li MB_SUCCESS on success. @li MB_FAILURE on failure.
- */
- mb_error_t mb_studio_porting_init
- (
- mb_studio_cb_f callback_f, /**< - The callback function. */
- void *cb_data /**< - The data that will be send back to the callback function. */
- )
- {
- return MB_SUCCESS;
- }
- /**
- * @brief The Studio porting layer destructor.
- *
- * The Studio porting layer destructor.
- *
- * @return @li MB_SUCCESS on success. @li MB_FAILURE on failure.
- */
- mb_error_t mb_studio_porting_delete()
- {
- return MB_SUCCESS;
- }
- /**
- * @brief This function activates the Studio link.
- *
- * This function activates the Studio link. The caller will be notified of the link state through
- * the notification function. The notification reason can be #MB_STUDIO_NR_LINK_UP
- * on success and #MB_STUDIO_NR_LINK_DOWN with failure status on failure.
- *
- * @return @li MB_SUCCESS on success. @li MB_FAILURE on failure.
- */
- mb_error_t mb_studio_link_up()
- {
- return MB_SUCCESS;
- }
- /**
- * @brief This function stops the Studio link.
- *
- * This function stops the Studio link. The Studio porting layer will stop receiving connections.
- * #MB_STUDIO_NR_LINK_DOWN with success status will be sent through the callback function.
- *
- * @return @li MB_SUCCESS on success. @li MB_FAILURE on failure.
- */
- mb_error_t mb_studio_link_down()
- {
- return MB_SUCCESS;
- }
- /**
- * @brief This function sends a data buffer on the transport layer.
- *
- * This function sends a data buffer on the transport layer. The caller will be notified when
- * the data is sent or if the send request failed. This function will fail
- * immediately if the transport layer is not in a connected state or if the link is down.
- *
- * @return MB_SUCCESS on success. MB_FAILURE on failure.
- */
- mb_error_t mb_studio_send
- (
- const void *data, /**< - A pointer to the data buffer. */
- mb_size_t size /**< - The buffer size in byte. */
- )
- {
- return MB_SUCCESS;
- }
- /**
- * @brief This function receives data from the transport layer.
- *
- * This function receives data from the transport layer. If the returned size (value of @e io_size
- * after the call) is smaller than the requested size (value of @e io_size before the
- * call) then the caller will be notified again when new data is available. In
- * other cases, this function must be called again to ensure further notification.
- * @return @li MB_SUCCESS on success. @li MB_FAILURE on failure.
- */
- mb_error_t mb_studio_recv
- (
- void *data, /**< - The pointer to the data buffer location to store the receive data. */
- mb_size_t *io_size /**< - As input, this is the requested size. As output, this is the
- size that was available (lower or equal to the requested size). */
- )
- {
- return MB_SUCCESS;
- }
- #endif