Functions
Ethernet Trasnport API Information

Functions

bmetStatus_e bmet_destroy (transport_HANDLE handle)
int32_t bmet_send (transport_HANDLE handle, uint8_t *logBuf, int32_t identity)
int32_t bmet_get_status (transport_HANDLE handle)
transport_HANDLE bmet_create (bmetChConfig_t bmetConfig)

Function Documentation

============================================================================
bmet_create

brief
create the bmet instance

Parameters:
[in]bmetConfigPointer to the bmet configuration structure
Returns:
bmet transport handle during success, NULL during fail

=============================================================================

============================================================================
bmet_destroy

brief
Frees up bmet instance created (Returns back all the descriptors back to system

Parameters:
[in]handlePointer to the bmet transport handle to be destroyed
Returns:
Status of the operation

=============================================================================

int32_t bmet_get_status ( transport_HANDLE  handle)

============================================================================
bmet_status

brief
get the status on the packets send earlier

Parameters:
[in]handlePointer to the transport handle
Returns:
identity of the send during success, -1 for fail

=============================================================================

int32_t bmet_send ( transport_HANDLE  handle,
uint8_t *  logBuf,
int32_t  identity 
)

============================================================================
bmet_send

brief
sends a buffer over netcp with precompiled packet header

Parameters:
[in]handlePointer to the transport handle
[in]logBufPointer to the logger buffer to be send over NetCP
[in]identityID of the send to be put in the descriptor; used to get the send status Should not be set to -1 since -1 is used as error return value
Returns:
Status of the operation (0 for Success, -1 for fail)

=============================================================================


Copyright 2014, Texas Instruments Incorporated