KISS Interface

File: csp/interfaces/csp_if_kiss.h

Description: KISS interface (serial).

Defines

CSP_IF_KISS_DEFAULT_NAME
[source]

Default name of KISS interface.

enum csp_kiss_mode_t
[source]

KISS Rx mode/state.

Typedefs

type csp_kiss_interface_data_t
[source]

KISS interface data (state information).

Interface Functions

int csp_kiss_add_interface(csp_iface_t *iface)
[source]

Add interface.

Parameters:
  • iface – CSP interface, initialized with name and inteface_data pointing to a valid #csp_kiss_interface_data_t.

Returns:

#CSP_ERR_NONE on success, otherwise an error code.

int csp_kiss_tx(csp_iface_t *iface, uint16_t via, csp_packet_t *packet, int from_me)
[source]

Send CSP packet over KISS (nexthop).

Returns:

#CSP_ERR_NONE on success, otherwise an error code.

void csp_kiss_rx(csp_iface_t *iface, const uint8_t *buf, size_t len, void *pxTaskWoken)
[source]

Process received CAN frame.

Called from driver when a chunk of data has been received. Once a complete frame has been received, the CSP packet will be routed on.

Parameters:
  • iface – incoming interface.

  • buf – reveived data.

  • len – length of buf.

  • pxTaskWoken – Valid reference if called from ISR, otherwise NULL!