|
@@ -55,6 +55,9 @@ enum rym_code {
|
|
|
#define RYM_CHD_INTV_TICK (RT_TICK_PER_SECOND * 3)
|
|
|
#endif
|
|
|
|
|
|
+/* how many CAN be sent when user active end the session. */
|
|
|
+#define RYM_END_SESSION_SEND_CAN_NUM 0x07
|
|
|
+
|
|
|
enum rym_stage {
|
|
|
RYM_STAGE_NONE,
|
|
|
/* set when C is send */
|
|
@@ -129,7 +132,7 @@ struct rym_ctx
|
|
|
* second.
|
|
|
*/
|
|
|
rt_err_t rym_recv_on_device(struct rym_ctx *ctx, rt_device_t dev,
|
|
|
- rym_callback on_begin, rym_callback on_data, rym_callback on_end,
|
|
|
- int handshake_timeout);
|
|
|
+ rt_uint16_t oflag, rym_callback on_begin, rym_callback on_data,
|
|
|
+ rym_callback on_end, int handshake_timeout);
|
|
|
|
|
|
#endif
|