2015-06-19 22:09:45 +08:00
|
|
|
/* command_packet.h - command packet header file */
|
2015-04-11 07:44:37 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2012-2014 Wind River Systems, Inc.
|
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
2015-04-11 07:44:37 +08:00
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2015-04-11 07:44:37 +08:00
|
|
|
*
|
2015-10-07 00:00:37 +08:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
2015-04-11 07:44:37 +08:00
|
|
|
*/
|
|
|
|
|
2015-08-30 00:57:26 +08:00
|
|
|
/**
|
|
|
|
* @brief Microkernel command packet library
|
|
|
|
*
|
|
|
|
* A command packet is an opaque data structure that maps to a k_args without
|
2015-10-29 20:47:46 +08:00
|
|
|
* exposing its innards. This library allows a subsystem that needs to define
|
|
|
|
* a command packet the ability to do so.
|
2015-08-30 00:57:26 +08:00
|
|
|
*/
|
|
|
|
|
2015-06-19 22:09:45 +08:00
|
|
|
#ifndef _COMMAND_PACKET_H
|
|
|
|
#define _COMMAND_PACKET_H
|
2015-04-11 07:44:37 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-06-19 21:55:51 +08:00
|
|
|
#include <microkernel/base_api.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2015-05-14 05:29:14 +08:00
|
|
|
/* define size of command packet (without exposing its internal structure) */
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2015-05-14 05:29:14 +08:00
|
|
|
#define CMD_PKT_SIZE_IN_WORDS (19)
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2015-10-29 20:47:46 +08:00
|
|
|
/* define command packet type */
|
2015-10-15 04:02:04 +08:00
|
|
|
|
|
|
|
typedef uint32_t cmdPkt_t[CMD_PKT_SIZE_IN_WORDS];
|
|
|
|
|
2015-04-11 07:44:37 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-06-19 22:09:45 +08:00
|
|
|
#endif /* _COMMAND_PACKET_H */
|