Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 23 of 23) sorted by relevance

/SCP-firmware-master/framework/src/
A Dfwk_string.c16 void fwk_str_memset(void *dest, int ch, size_t count) in fwk_str_memset() argument
24 ret = memset(dest, ch, count); in fwk_str_memset()
46 char *ch; in fwk_str_strncpy() local
52 ch = strncpy(dest, src, count); in fwk_str_strncpy()
53 if (ch != dest) { in fwk_str_strncpy()
A Dfwk_io.c21 int fwk_io_null_getch(const struct fwk_io_stream *stream, char *ch) in fwk_io_null_getch() argument
26 int fwk_io_null_putch(const struct fwk_io_stream *stream, char ch) in fwk_io_null_putch() argument
159 int fwk_io_getch(const struct fwk_io_stream *stream, char *ch) in fwk_io_getch() argument
167 if (ch == NULL) { in fwk_io_getch()
171 *ch = '\0'; in fwk_io_getch()
184 status = stream->adapter->getch(stream, ch); in fwk_io_getch()
194 int fwk_io_putch(const struct fwk_io_stream *stream, char ch) in fwk_io_putch() argument
213 status = stream->adapter->putch(stream, ch); in fwk_io_putch()
A Dfwk_log.c270 char ch; in fwk_log_unbuffer() local
312 fetched = fwk_ring_pop(&fwk_log_ctx.ring, &ch, sizeof(ch)); in fwk_log_unbuffer()
315 status = fwk_io_putch(fwk_log_stream, ch); in fwk_log_unbuffer()
/SCP-firmware-master/product/synquacer/module/f_i2c/src/
A Di2c_api.c20 I2C_EN_CH_t ch,
28 I2C_EN_CH_t ch,
46 I2C_ERR_t i2c_api_use_hs_mode(I2C_EN_CH_t ch, bool use_hsmode_flag) in i2c_api_use_hs_mode() argument
48 I2C_ST_PACKET_INFO_t *packet_info = i2c_get_channel_structure(ch); in i2c_api_use_hs_mode()
61 I2C_EN_CH_t ch, in i2c_api_recv_data_i() argument
69 I2C_ST_PACKET_INFO_t *packet_info = i2c_get_channel_structure(ch); in i2c_api_recv_data_i()
102 I2C_EN_CH_t ch, in f_i2c_api_recv_data() argument
120 ch, target_address, address, data, length, 0x00000000); in f_i2c_api_recv_data()
126 I2C_EN_CH_t ch, in i2c_api_send_data_i() argument
166 I2C_EN_CH_t ch, in f_i2c_api_send_data() argument
[all …]
A Di2c_depend.c41 I2C_ST_PACKET_INFO_t *i2c_get_channel_structure(I2C_EN_CH_t ch) in i2c_get_channel_structure() argument
45 switch (ch) { in i2c_get_channel_structure()
/SCP-firmware-master/module/mhu2/src/
A Dmod_mhu2.c145 uint8_t db_ch = 0, ch = 0; in mhu2_send_message() local
186 for (uint8_t idx = 0; ch < (min_channels_required - 1); ch++) { in mhu2_send_message()
188 if (ch == db_ch) in mhu2_send_message()
204 if ((ch + payload_idx) == db_ch) in mhu2_send_message()
225 uint8_t db_ch = 0, ch = 0; in mhu2_get_message() local
240 for (uint8_t idx = 0; ch < (min_channels_required - 1); ch++) { in mhu2_get_message()
242 if (ch == db_ch) in mhu2_get_message()
245 msg_ptr[idx++] = recv->channel[ch].STAT; in mhu2_get_message()
260 if ((ch + payload_idx) == db_ch) in mhu2_get_message()
336 for (uint8_t ch = 0; ch < recv_reg->MSG_NO_CAP; ch++) { in mhu2_channel_init() local
[all …]
/SCP-firmware-master/module/optee/console/src/
A Dmod_optee_console.c48 char *restrict ch) in mod_console_io_getch() argument
50 *ch = 'A'; in mod_console_io_getch()
55 static int mod_console_io_putch(const struct fwk_io_stream *stream, char ch) in mod_console_io_putch() argument
57 console_putc(ch); in mod_console_io_putch()
/SCP-firmware-master/framework/include/
A Dfwk_io.h165 int (*getch)(const struct fwk_io_stream *stream, char *ch);
181 int (*putch)(const struct fwk_io_stream *stream, char ch);
298 char *restrict ch);
316 int fwk_io_putch(const struct fwk_io_stream *stream, char ch);
A Dfwk_string.h50 FWK_LEAF FWK_NOTHROW void fwk_str_memset(void *dest, int ch, size_t count);
/SCP-firmware-master/product/synquacer/module/f_i2c/include/
A Di2c_api.h19 I2C_EN_CH_t ch,
26 I2C_EN_CH_t ch,
A Dmod_f_i2c.h66 I2C_EN_CH_t ch,
88 I2C_EN_CH_t ch,
/SCP-firmware-master/framework/test/
A Dtest_fwk_string.c20 int ch = 0x11; in test_fwk_str_memset() local
22 fwk_str_memset((void *)&dest[0], ch, count); in test_fwk_str_memset()
25 assert(dest[i] == ch); in test_fwk_str_memset()
/SCP-firmware-master/unit_test/unity_mocks/mocks/
A DMockfwk_io.h57 …ne fwk_io_getch_ExpectAndReturn(stream, ch, cmock_retval) fwk_io_getch_CMockExpectAndReturn(__LINE… argument
58 …turn(UNITY_LINE_TYPE cmock_line, const struct fwk_io_stream* stream, char* ch, int cmock_to_return…
59 typedef int (* CMOCK_fwk_io_getch_CALLBACK)(const struct fwk_io_stream* stream, char* ch, int cmock…
63 …Return(stream, stream_Depth, ch, cmock_retval) fwk_io_getch_CMockExpectWithArrayAndReturn(__LINE__… argument
65 #define fwk_io_getch_ReturnThruPtr_ch(ch) fwk_io_getch_CMockReturnMemThruPtr_ch(__LINE__, ch, sizeo… argument
66 …_io_getch_ReturnArrayThruPtr_ch(ch, cmock_len) fwk_io_getch_CMockReturnMemThruPtr_ch(__LINE__, ch,… argument
67 #define fwk_io_getch_ReturnMemThruPtr_ch(ch, cmock_size) fwk_io_getch_CMockReturnMemThruPtr_ch(__LI… argument
68 void fwk_io_getch_CMockReturnMemThruPtr_ch(UNITY_LINE_TYPE cmock_line, char* ch, size_t cmock_size);
79 …ne fwk_io_putch_ExpectAndReturn(stream, ch, cmock_retval) fwk_io_putch_CMockExpectAndReturn(__LINE… argument
81 typedef int (* CMOCK_fwk_io_putch_CALLBACK)(const struct fwk_io_stream* stream, char ch, int cmock_…
[all …]
A DMockfwk_string.h33 #define fwk_str_memset_Expect(dest, ch, count) fwk_str_memset_CMockExpect(__LINE__, dest, ch, count) argument
34 void fwk_str_memset_CMockExpect(UNITY_LINE_TYPE cmock_line, void* dest, int ch, size_t count);
35 typedef void (* CMOCK_fwk_str_memset_CALLBACK)(void* dest, int ch, size_t count, int cmock_num_call…
39 …set_ExpectWithArray(dest, dest_Depth, ch, count) fwk_str_memset_CMockExpectWithArray(__LINE__, des… argument
40 …CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, void* dest, int dest_Depth, int ch, size_t count);
A DMockfwk_string.c144 void fwk_str_memset(void* dest, int ch, size_t count) in fwk_str_memset() argument
159 … Mock.fwk_str_memset_CallbackFunctionPointer(dest, ch, count, Mock.fwk_str_memset_CallbackCalls++); in fwk_str_memset()
178 …UNITY_TEST_ASSERT_EQUAL_INT(cmock_call_instance->Expected_ch, ch, cmock_line, CMockStringMismatch); in fwk_str_memset()
188 … Mock.fwk_str_memset_CallbackFunctionPointer(dest, ch, count, Mock.fwk_str_memset_CallbackCalls++); in fwk_str_memset()
199 …k_str_memset_CALL_INSTANCE* cmock_call_instance, void* dest, int dest_Depth, int ch, size_t count);
200 …wk_str_memset_CALL_INSTANCE* cmock_call_instance, void* dest, int dest_Depth, int ch, size_t count) in CMockExpectParameters_fwk_str_memset() argument
206 cmock_call_instance->Expected_ch = ch; in CMockExpectParameters_fwk_str_memset()
236 void fwk_str_memset_CMockExpect(UNITY_LINE_TYPE cmock_line, void* dest, int ch, size_t count) in fwk_str_memset_CMockExpect() argument
246 CMockExpectParameters_fwk_str_memset(cmock_call_instance, dest, 1, ch, count); in fwk_str_memset_CMockExpect()
263 …_CMockExpectWithArray(UNITY_LINE_TYPE cmock_line, void* dest, int dest_Depth, int ch, size_t count) in fwk_str_memset_CMockExpectWithArray() argument
[all …]
A DMockfwk_io.c586 int fwk_io_getch(const struct fwk_io_stream* stream, char* ch) in fwk_io_getch() argument
632 UNITY_TEST_ASSERT_NOT_NULL(ch, cmock_line, CMockStringPtrIsNULL); in fwk_io_getch()
633 memcpy((void*)ch, (void*)cmock_call_instance->ReturnThruPtr_ch_Val, in fwk_io_getch()
646 cmock_call_instance->Expected_ch = ch; in CMockExpectParameters_fwk_io_getch()
696 CMockExpectParameters_fwk_io_getch(cmock_call_instance, stream, 1, ch); in fwk_io_getch_CMockExpectAndReturn()
724 CMockExpectParameters_fwk_io_getch(cmock_call_instance, stream, stream_Depth, ch); in fwk_io_getch_CMockExpectWithArrayAndReturn()
733 cmock_call_instance->ReturnThruPtr_ch_Val = ch; in fwk_io_getch_CMockReturnMemThruPtr_ch()
751 int fwk_io_putch(const struct fwk_io_stream* stream, char ch) in fwk_io_putch() argument
805 cmock_call_instance->Expected_ch = ch; in CMockExpectParameters_fwk_io_putch()
854 CMockExpectParameters_fwk_io_putch(cmock_call_instance, stream, 1, ch); in fwk_io_putch_CMockExpectAndReturn()
[all …]
/SCP-firmware-master/module/stdio/src/
A Dmod_stdio.c97 static int mod_stdio_getc(const struct fwk_io_stream *stream, char *ch) in mod_stdio_getc() argument
104 *ch = (char)ich; in mod_stdio_getc()
114 static int mod_stdio_putc(const struct fwk_io_stream *stream, char ch) in mod_stdio_putc() argument
119 fputc(ch, ctx->stream); in mod_stdio_putc()
/SCP-firmware-master/product/rcar/module/rcar_scif/src/
A Dmod_rcar_scif.c150 static bool mod_rcar_scif_getch(fwk_id_t id, char *ch) in mod_rcar_scif_getch() argument
225 char *restrict ch) in mod_rcar_scif_io_getch() argument
234 ok = mod_rcar_scif_getch(stream->id, ch); in mod_rcar_scif_io_getch()
241 static int mod_rcar_scif_io_putch(const struct fwk_io_stream *stream, char ch) in mod_rcar_scif_io_putch() argument
248 if ((ch == '\n') && !(stream->mode & FWK_IO_MODE_BINARY)) in mod_rcar_scif_io_putch()
251 mod_rcar_scif_putch(stream->id, ch); in mod_rcar_scif_io_putch()
/SCP-firmware-master/product/synquacer/module/f_uart3/src/
A Dmod_f_uart3.c141 static void mod_f_uart3_putch(fwk_id_t id, char ch) in mod_f_uart3_putch() argument
150 reg->RFR_TFR = ch; in mod_f_uart3_putch()
208 int mod_f_uart3_io_putch(const struct fwk_io_stream *stream, char ch) in mod_f_uart3_io_putch() argument
215 if ((ch == '\n') && !(stream->mode & FWK_IO_MODE_BINARY)) in mod_f_uart3_io_putch()
218 mod_f_uart3_putch(stream->id, ch); in mod_f_uart3_io_putch()
/SCP-firmware-master/module/debugger_cli/src/
A Dmod_debugger_cli.c33 char ch = 0; in alarm_callback() local
37 status = fwk_io_getch(fwk_io_stdin, &ch); in alarm_callback()
41 if (ch == 0x05) { in alarm_callback()
/SCP-firmware-master/product/synquacer/module/f_i2c/include/internal/
A Di2c_depend.h17 I2C_ST_PACKET_INFO_t *i2c_get_channel_structure(I2C_EN_CH_t ch);
/SCP-firmware-master/module/pl011/src/
A Dmod_pl011.c161 static void mod_pl011_putch(fwk_id_t id, char ch) in mod_pl011_putch() argument
176 reg->DR = (uint16_t)ch; in mod_pl011_putch()
179 static bool mod_pl011_getch(fwk_id_t id, char *ch) in mod_pl011_getch() argument
194 *ch = (char)reg->DR; in mod_pl011_getch()
593 char *restrict ch) in mod_pl011_io_getch() argument
606 ok = mod_pl011_getch(stream->id, ch); in mod_pl011_io_getch()
614 static int mod_pl011_io_putch(const struct fwk_io_stream *stream, char ch) in mod_pl011_io_putch() argument
625 if ((ch == '\n') && in mod_pl011_io_putch()
631 mod_pl011_putch(stream->id, ch); in mod_pl011_io_putch()
/SCP-firmware-master/
A DCMakeLists.txt605 list(APPEND c_globs "*.[ch]")
606 list(APPEND c_globs "*.[ch]pp")
607 list(APPEND c_globs "*.[ch]xx")

Completed in 43 milliseconds