mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-10 12:11:56 +00:00
This commit adds PF_CAN and AF_CAN protocol family identifiers that are used by BSD socket CAN support code. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> Signed-off-by: Vipin Anand <vipin.anand@intel.com>
41 lines
598 B
C
41 lines
598 B
C
/** @file
|
|
* @brief Socket CAN definitions.
|
|
*
|
|
* Definitions for socket CAN support.
|
|
*/
|
|
|
|
/*
|
|
* Copyright (c) 2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_INCLUDE_NET_SOCKET_CAN_H_
|
|
#define ZEPHYR_INCLUDE_NET_SOCKET_CAN_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <zephyr/types.h>
|
|
|
|
/**
|
|
* @brief Socket CAN library
|
|
* @defgroup socket_can Network Core Library
|
|
* @ingroup networking
|
|
* @{
|
|
*/
|
|
|
|
/* Protocols of the protocol family PF_CAN */
|
|
#define CAN_RAW 1
|
|
|
|
/**
|
|
* @}
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ZEPHYR_INCLUDE_NET_SOCKET_CAN_H_ */
|