-int8_t rpp_fr_config_node_params(const char* params);
-
-/**
- * Add new static buffer configuration into the list of buffers.
- *
- * This functions provides a mechanism to do the user FlexRay configuration.
- * The function parses the string with parameters and stores them into an
- * internal structure.
- * For complete user configuration also rpp_fr_config_cluster_params and
- * rpp_fr_config_node_params have to be called to configure global and local
- * FlexRay parameters.
- * At least one static buffer must be configured as TX. For sync and coldstart nodes
- * the first buffer should be configured as TX.
- *
- * The string with configuration contains hexadecimal numbers or strings separated by spaces.
- * Each number or string stands for one parameter in this order:
- * channel (0 - A, 1 - B, 2 - AB)
- * cycleCounterFiltering
- * isTx
- * maxPayload
- * msgBufferInterrupt
- * payloadPreambleIndicatorTr
- * singleTransmit
- * slotId
- *
- * For example:
- * "0x2 0x0 0x1 0x9 0x1 0x0 0x0 0x1"
- *
- * @param [in] params Address of the string with configuration parameters
- *
- * @return SUCCESS if configuration successful.
- * FAILURE if parameter parsing fails.
- */
-int8_t rpp_fr_config_static_buffer(const char* params);
-
-/**
- * Add new dynamic buffer configuration into the list of buffers.
- *
- * This functions provides a mechanism to do the user FlexRay configuration.
- * The function parses the string with parameters and stores them into an
- * internal structure.
- * For complete user configuration also rpp_fr_config_cluster_params,
- * rpp_fr_config_node_params and rpp_fr_config_static_buffer have to be called
- * to configure global, local FlexRay parameters and at least one static buffer.
- *
- * The string with configuration contains hexadecimal numbers or strings separated by spaces.
- * Each number or string stands for one parameter in this order:
- * channel (0 - A, 1 - B)
- * cycleCounterFiltering
- * isTx
- * maxPayload
- * msgBufferInterrupt
- * singleTransmit
- * slotId
- *
- * For example:
- * "0x0 0x0 0x1 0x9 0x1 0x0 0x1"
- *
- * @param [in] params Address of the string with configuration parameters
- *
- * @return SUCCESS if configuration successful.
- * FAILURE if parameter parsing fails.
- */
-int8_t rpp_fr_config_dynamic_buffer(const char* params);
+typedef enum {
+ RPP_FR_UNKNOWN, /**< FlexRay is in unknown state, this should not happen */
+ RPP_FR_NOT_INITIALIZED, /**< FlexRay driver was not yet configured and initialized, communication is not running. This is the default state after reset */
+ RPP_FR_DRV_INITIALIZED, /**< FlexRay driver was initialized, communication is not running, Driver is ready for controller initialization */
+ RPP_FR_CTR_INITIALIZED, /**< FlexRay controller was initlized, communicatin is not running, but can be started */
+ RPP_FR_RUNNING, /**< Communication is running */
+ RPP_FR_HALTED, /**< Communication was halted, controller is ready for reconfiguration and restart of the communication */
+ RPP_FR_ABORTED /**< Communication was aborted, controller is ready for reconfiguration and restart of the communication */
+} rpp_fr_state_t;