Defines types of callbacks.

The one of runtime parameters' elements has such type. It is used to get externally defined callbacks which would be used in interface's methods.

Public Attributes#

sid_error_t(*

Declaration of function type.

sid_error_t(*

Declaration of pointer to function.

sid_error_t(*

Notifies that some data has been received and can be fetched by method sid_pal_serial_ifc_s::get_frame.

Public Attribute Documentation#

tx_done_cb#

sid_error_t(* sid_pal_serial_callbacks_t::tx_done_cb) (void *user_ctx)

Declaration of function type.

The function itself is callback which can be called by inteface's methods. This callback should be defined outside a module which defines implementation for this interface. Most likely it would be defined in the module which uses implementation of the interface. Callback is called when transmission by means of implementation is finished.


rx_done_cb#

sid_error_t(* sid_pal_serial_callbacks_t::rx_done_cb) (void *user_ctx, const uint8_t *buffer_received, size_t buffer_size)

Declaration of pointer to function.

The function itself is callback which can be called by interface's methods. This callback should be defined outside a module which defines implementation for this interface. Most likely it would be defined in the module which uses implementation of the interface. Callback is called when implementation has finished reception of data by its means.


new_rx_done_cb#

sid_error_t(* sid_pal_serial_callbacks_t::new_rx_done_cb) (void *user_ctx)

Notifies that some data has been received and can be fetched by method sid_pal_serial_ifc_s::get_frame.