• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ FELICA_DEBUG_MSG函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中FELICA_DEBUG_MSG函数的典型用法代码示例。如果您正苦于以下问题:C++ FELICA_DEBUG_MSG函数的具体用法?C++ FELICA_DEBUG_MSG怎么用?C++ FELICA_DEBUG_MSG使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了FELICA_DEBUG_MSG函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: felica_uart_write

int felica_uart_write(char *buf, size_t count)
{
    mm_segment_t old_fs = get_fs();
    int n;

    #ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_UART] write_hs_uart - start \n");
    #endif

    if (uart_f == NULL)
    {
        #ifdef FEATURE_DEBUG_HIGH
        FELICA_DEBUG_MSG("[FELICA_UART] felica_uart is not opened\n");
		#endif
        return 0;
    }

    set_fs(KERNEL_DS);
    n = vfs_write(uart_f, buf, count, &uart_f->f_pos);
    #ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_UART] write_hs_uart - write (%d)\n", n);
    #endif
    set_fs(old_fs);

    #ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_UART] write_hs_uart - end \n");
    #endif

    return n;
}
开发者ID:romanbb,项目名称:android_kernel_lge_d851,代码行数:30,代码来源:felica_uart.c


示例2: felica_rfs_release

/*
 * Description: MFC calls this function using close method(int close()) of FileInputStream class
 * Input: None
 * Output: RFS low : 1 RFS high : 0
 */
static int felica_rfs_release (struct inode *inode, struct file *fp)
{
  if(0 == isopen)
  {
    #ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_RFS] felica_rfs_release - not open \n");
    #endif

    return -1;
  }
  else
  {
    #ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_RFS] felica_rfs_release - start \n");
    #endif

    isopen = 0;
  }
#ifdef FELICA_LED_SUPPORT
 isFelicaUsed = 0;
#endif

  #ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA_RFS] felica_rfs_release - end \n");
  #endif

#ifdef FELICA_FN_DEVICE_TEST
  FELICA_DEBUG_MSG("[FELICA_RFS] felica_rfs_release - result(%d) \n",result_close_rfs);
  return result_close_rfs;
#else
  return 0;
#endif
}
开发者ID:HB72K1,项目名称:LG-G2-D802-Kernel,代码行数:38,代码来源:felica_rfs.c


示例3: felica_rws_open

/*
* Description : MFC calls this function using close method(void open()) of FileOutputStream class
*               When this fuction is excuted, set PON to Low.
* Input : None
* Output : Success : 0 Fail : Other
*/
static int felica_rws_open (struct inode *inode, struct file *fp)
{
  int rc = 0;

  if(1 == isopen)
  {
    #ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_RWS] felica_rws_open - already open \n");
    #endif

    return -1;
  }
  else
  {
    #ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_RWS] felica_rws_open - start \n");
    #endif

    isopen = 1;
  }

  rc = felica_gpio_open(GPIO_FELICA_INT, GPIO_DIRECTION_IN, GPIO_HIGH_VALUE);

  #ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA_RWS] felica_rws_open - end \n");
  #endif

#ifdef FELICA_FN_DEVICE_TEST
  FELICA_DEBUG_MSG("[FELICA_RWS] felica_rws_open - result(%d) \n",result_open_rws);
  return result_open_rws;
#else
    return rc;
#endif
}
开发者ID:regit66,项目名称:android_kernel_lge_geehrc,代码行数:40,代码来源:felica_rws.c


示例4: felica_uart_ioctrl

/*
* Description : get size of remaing data
* Input : none
* Output : success : data length fail : 0
*/
int felica_uart_ioctrl(int *count)
{
  mm_segment_t old_fs = get_fs();
  int rc = 0;

  #ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA_UART] felica_uart_ioctrl - start \n");
  #endif

  if(0 > fd)
  {
    FELICA_DEBUG_MSG("[FELICA_UART] felica_uart is not opened\n");
    return rc;
  }

  set_fs(KERNEL_DS);
  
  rc = sys_ioctl(fd, TIOCINQ, (unsigned long)count);

  set_fs(old_fs);

  #ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA_UART] felica_uart_ioctrl - end \n");
  #endif

  return rc;
}
开发者ID:Juanito216,项目名称:lge-kernel-omap4,代码行数:32,代码来源:felica_uart.c


示例5: felica_rfs_interrupt_work

static void felica_rfs_interrupt_work(struct work_struct *data)
{
	int rc = 0;

	disable_irq_nosync(gpio_to_irq(felica_get_rfs_gpio_num()));
	usermodehelper_enable();

	#ifdef FEATURE_DEBUG_LOW
	FELICA_DEBUG_MSG("[FELICA_RFS] felica_rfs_interrupt_work - start \n");
	#endif

	rc = invoke_led_service();

	if(rc)
	{
      #ifdef FEATURE_DEBUG_HIGH
      FELICA_DEBUG_MSG("[FELICA_RFS] Error - invoke app \n");
	unlock_felica_rfs_wake_lock();
	isFelicaUsed =0;
	  #endif
	}
	#ifdef FEATURE_DEBUG_LOW
	FELICA_DEBUG_MSG("[FELICA_RFS] felica_rfs_interrupt_work - end \n");
	#endif

	enable_irq(gpio_to_irq(felica_get_rfs_gpio_num()));
}
开发者ID:HB72K1,项目名称:LG-G2-D802-Kernel,代码行数:27,代码来源:felica_rfs.c


示例6: felica_uart_close

int felica_uart_close(void)
{
    mm_segment_t old_fs = get_fs();

    #ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_UART] close_hs_uart - start \n");
    #endif

    if (uart_f == NULL)
    {
        #ifdef FEATURE_DEBUG_HIGH
        FELICA_DEBUG_MSG("[FELICA_UART] felica_uart is not opened \n");
		#endif
        return 0;
    }

    set_felica_uart_status(UART_STATUS_READY);

    set_fs(KERNEL_DS);
    filp_close(uart_f, NULL);
    uart_f = NULL;
    set_fs(old_fs);

    #ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_UART] close_hs_uart - end \n");
    #endif

    return 0;
}
开发者ID:romanbb,项目名称:android_kernel_lge_d851,代码行数:29,代码来源:felica_uart.c


示例7: felica_uart_ioctrl

int felica_uart_ioctrl(int *count)
{
    mm_segment_t old_fs = get_fs();
    int n;

    #ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_UART] felica_uart_ioctrl - start \n");
    #endif

    if (uart_f == NULL)
    {
        #ifdef FEATURE_DEBUG_HIGH
        FELICA_DEBUG_MSG("[FELICA_UART] felica_uart is not opened\n");
		#endif
        return 0;
    }

    set_fs(KERNEL_DS);
    n = do_vfs_ioctl(uart_f, -1, TIOCINQ, (unsigned long)count);
    #ifdef FEATURE_DEBUG_MED
    FELICA_DEBUG_MSG("[FELICA_UART] do_vfs_ioctl return(%d), count(%d) \n", n, *count);
    #endif
    set_fs(old_fs);

    #ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_UART] felica_uart_ioctrl - end \n");
    #endif

    return n;
}
开发者ID:romanbb,项目名称:android_kernel_lge_d851,代码行数:30,代码来源:felica_uart.c


示例8: felica_uart_open

/*
* Description : open uart
* Input : None
* Output : success : 0 fail : others
*/
int felica_uart_open(void)
{
//  struct termios newtio;
  int rc;
  mm_segment_t old_fs = get_fs();

  #ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA_UART] open_hs_uart - start \n");
  #endif

  if(0 <= fd)
  {
    FELICA_DEBUG_MSG("[FELICA_UART] felica_uart is already opened fd : %d\n",fd);
    return 0;
  }

  set_fs(KERNEL_DS);

    fd = sys_open("/dev/ttyO3", O_RDWR | O_NOCTTY | O_NONBLOCK, 0);
    
  FELICA_DEBUG_MSG("[FELICA_UART] open UART - fd : %d \n",fd);
    
    
    if (fd < 0)
    {
    FELICA_DEBUG_MSG("[FELICA_UART] ERROR - can not sys_open \n");
      set_fs(old_fs);
      return fd;
    }

    {
      /*  Set speed */
      struct termios newtio;

      // yjchoi; 120412 temporary block due to build error
      serial_omap_disable_console_port();
      
      // yjchoi; 120412 temporary block due to build error
      rc = felica_gpio_open(GPIO_FELICA_UART_SW, GPIO_DIRECTION_OUT, GPIO_LOW_VALUE);

      felica_gpio_write(GPIO_FELICA_UART_SW, 0);
      sys_ioctl(fd, TCGETS, (unsigned long)&newtio);
      memcpy(&console_settings, &newtio, sizeof(struct termios));

      memset(&newtio, 0, sizeof(newtio));
      newtio.c_cflag = B460800 | CS8 | CLOCAL | CREAD;
      newtio.c_cc[VMIN] = 1;
      newtio.c_cc[VTIME] = 5;
      sys_ioctl(fd, TCFLSH, TCIOFLUSH);
      sys_ioctl(fd, TCSETSF, (unsigned long)&newtio);
    }
    set_fs(old_fs);

  #ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA_UART] open_hs_uart - end \n");
  #endif

  return 0;
}
开发者ID:Juanito216,项目名称:lge-kernel-omap4,代码行数:64,代码来源:felica_uart.c


示例9: felica_cal_read

/*
* Description :
* Input :
* Output :
*/
static ssize_t felica_cal_read(struct file *fp, char *buf, size_t count, loff_t *pos)
{
    unsigned char read_buf = 0x00;
    int rc = -1;

#ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_CAL] felica_cal_read - start \n");
#endif

    /* Check error */
    if(NULL == fp)
    {
        FELICA_DEBUG_MSG("[FELICA_CAL] ERROR fp \n");
        return -1;
    }

    if(NULL == buf)
    {
        FELICA_DEBUG_MSG("[FELICA_CAL] ERROR buf \n");
        return -1;
    }

    if(1 != count)
    {
        FELICA_DEBUG_MSG("[FELICA_CAL] ERROR count \n");
        return -1;
    }

    if(NULL == pos)
    {
        FELICA_DEBUG_MSG("[FELICA_CAL] ERROR file \n");
        return -1;
    }



    rc = felica_i2c_read(FELICA_I2C_REG_ADDRSS_01, &read_buf, 1);
    if(rc)
    {
        FELICA_DEBUG_MSG("[FELICA_CAL] felica_i2c_read : %d \n",rc);
        return -1;
    }

#ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_CAL] felica_cal : 0x%02x \n",read_buf);
#endif

    rc = copy_to_user(buf, &read_buf, count);
    if(rc)
    {
        FELICA_DEBUG_MSG("[FELICA_CAL] ERROR - copy_from_user \n");
        return -1;
    }

#ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_CAL] felica_cal_read - end \n");
#endif

    return 1;
}
开发者ID:HB72K1,项目名称:LG-G2-D802-Kernel,代码行数:65,代码来源:felica_cal.c


示例10: felica_rfs_open_after_boot_work

static void felica_rfs_open_after_boot_work(struct work_struct *data)
{
	int rc = 0;
    #ifdef FEATURE_DEBUG_LOW
	FELICA_DEBUG_MSG("[FELICA_RFS] felica_rfs_open_after_boot_work - start");
    #endif
	rc = felica_gpio_open(felica_get_rfs_gpio_num(), GPIO_DIRECTION_IN, GPIO_HIGH_VALUE);
    #ifdef FEATURE_DEBUG_LOW
	FELICA_DEBUG_MSG("[FELICA_RFS] felica_rfs_open_after_boot_work - end");
    #endif
}
开发者ID:Fechinator,项目名称:FechdaKernel,代码行数:11,代码来源:felica_rfs.c


示例11: felica_uart_close

/*
* Description : close uart
* Input : None
* Output : success : 0
*/
int felica_uart_close(void)
{

  mm_segment_t old_fs = get_fs();

  #ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA_UART] close_hs_uart - start \n");
  #endif

  if(0 > fd)
  {
    FELICA_DEBUG_MSG("[FELICA_UART] felica_uart is not opened\n");
    return 0;
  }

    set_fs(KERNEL_DS);
    {
      /*  Set speed */
      struct termios settings;
  
      sys_ioctl(fd, TCGETS, (unsigned long)&settings);
#if 1
      memcpy(&settings, &console_settings, sizeof(struct termios));
      FELICA_DEBUG_MSG("[FELICA_UART] Set BAUD rate to 115200\n");
#else
      if((settings.c_cflag & CBAUD) == B460800)
      {
        settings.c_cflag &= ~(CBAUD);
        settings.c_cflag |= B115200;
        FELICA_DEBUG_MSG("[FELICA_UART] Set BAUD rate to 115200\n");
      }
#endif
      sys_ioctl(fd, TCSETS, (unsigned long)&settings);
    }

  sys_close(fd);
  fd = -1;

  felica_gpio_write(GPIO_FELICA_UART_SW, 1);

  // yjchoi; 120412 temporary block due to build error
  serial_omap_enable_console_port();

  set_fs(old_fs);

  #ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA_UART] close_hs_uart - end \n");
  #endif

  return 0;

}
开发者ID:Juanito216,项目名称:lge-kernel-omap4,代码行数:57,代码来源:felica_uart.c


示例12: felica_rfs_detect_interrupt

irqreturn_t felica_rfs_detect_interrupt(int irq, void *dev_id)
{
	#ifdef FEATURE_DEBUG_LOW
	FELICA_DEBUG_MSG("[FELICA_RFS] felica_rfs_low_isr - start \n");
	#endif

	schedule_delayed_work(&felica_rfs_interrupt,0);

	#ifdef FEATURE_DEBUG_LOW
	FELICA_DEBUG_MSG("[FELICA_RFS] felica_rfs_low_isr - end \n");
	#endif
	return IRQ_HANDLED;
}
开发者ID:shaqfu786,项目名称:FreshBake,代码行数:13,代码来源:felica_rfs.c


示例13: felica_cal_exit

/*
* Description :
* Input :
* Output :
*/
static void felica_cal_exit(void)
{
#ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_CAL] felica_cal_exit - start \n");
#endif

    /* deregister the device file */
    misc_deregister(&felica_cal_device);

#ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_CAL] felica_cal_exit - end \n");
#endif
}
开发者ID:HB72K1,项目名称:LG-G2-D802-Kernel,代码行数:18,代码来源:felica_cal.c


示例14: felica_rws_exit

static void felica_rws_exit(void)
{
  #ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA_INT] felica_rws_exit - start \n");
  #endif

  free_irq(gpio_to_irq(GPIO_FELICA_INT), NULL);

  misc_deregister(&felica_rws_device);
  
  #ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA_INT] felica_rws_exit - end \n");
  #endif
}
开发者ID:Juanito216,项目名称:lge-kernel-omap4,代码行数:14,代码来源:felica_rws.c


示例15: felica_int_low_isr

static irqreturn_t felica_int_low_isr(int irq, void *dev_id)
{
  #ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA_RWS] felica_int_low_isr - start \n");
  #endif

  schedule_delayed_work(&felica_int_work,0);
  
  #ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA_RWS] felica_int_low_isr - end \n");
  #endif

	return IRQ_HANDLED;
}
开发者ID:Juanito216,项目名称:lge-kernel-omap4,代码行数:14,代码来源:felica_rws.c


示例16: felica_exit

/*
* Description :
* Input :
* Output :
*/
static void felica_exit(void)
{
  #ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA] felica_exit - start \n");
  #endif

  destroy_felica_wake_lock();

  /* deregister the device file */
  misc_deregister(&felica_device);

  #ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA] felica_exit - end \n");
  #endif
}
开发者ID:ChangYeoun,项目名称:10.1,代码行数:20,代码来源:felica.c


示例17: felica_get_rfs_gpio_num

int felica_get_rfs_gpio_num(void)
{
/*                                                                         */

  int gpionum = GPIO_FELICA_RFS;

  pr_info("CBAL current rev -> %d \n",lge_get_board_revno());


  if (lge_get_board_revno() < HW_REV_B)
  {
	  pr_info("CBAL RFS-CDET gpio rev old -> %d \n",GPIO_FELICA_RFS_REV_A);

    gpionum = GPIO_FELICA_RFS_REV_A;
  }
  else
  {
	  pr_info("CBAL RFS-CDET gpio rev -> %d \n",GPIO_FELICA_RFS);

    gpionum = GPIO_FELICA_RFS;
  }

	#ifdef FEATURE_DEBUG_LOW
	FELICA_DEBUG_MSG("[FELICA_GPIO] felica_get_rfs_gpio_num(%d) \n",gpionum);
	#endif
	return gpionum;	

	return GPIO_FELICA_RFS;

}
开发者ID:romanbb,项目名称:android_kernel_lge_d851,代码行数:30,代码来源:felica_gpio.c


示例18: felica_fsync

/*
* Description :
* Input :
* Output :
*/
static int felica_fsync(struct file *fp, loff_t param1, loff_t param2, int datasync)
{
   FELICA_DEBUG_MSG("[FELICA] felica_fsync\n");

  // TODO: TRANSMIT DATA TO FELICA CHIP

  return 0;
}
开发者ID:ChangYeoun,项目名称:10.1,代码行数:13,代码来源:felica.c


示例19: felica_cal_release

/*
* Description :
* Input :
* Output :
*/
static int felica_cal_release (struct inode *inode, struct file *fp)
{
#ifdef FEATURE_DEBUG_LOW
    FELICA_DEBUG_MSG("[FELICA_CAL] felica_cal_release \n");
#endif

    return 0;
}
开发者ID:HB72K1,项目名称:LG-G2-D802-Kernel,代码行数:13,代码来源:felica_cal.c


示例20: invoke_felica_apk

/*
 *    FUNCTION DEFINITION
 */
static int invoke_felica_apk(void)
{
  char *argv[] = { "/system/bin/sh","/system/bin/am", "start", "-n", FELICA_INTENT, "--activity-clear-top", NULL };

  static char *envp[] = {FELICA_LD_LIBRARY_PATH,FELICA_BOOTCLASSPATH,FELICA_PATH,NULL };
  int rc = 0;

#ifdef FEATURE_DEBUG_LOW
  FELICA_DEBUG_MSG("[FELICA_RWS] invoke felica app... \n");
#endif

  rc = call_usermodehelper( argv[0], argv, envp, UMH_WAIT_EXEC );

  FELICA_DEBUG_MSG("[FELICA_RWS] felica app result : %d \n", rc);

  return rc;
}
开发者ID:Juanito216,项目名称:lge-kernel-omap4,代码行数:20,代码来源:felica_rws.c



注:本文中的FELICA_DEBUG_MSG函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ FF函数代码示例发布时间:2022-05-30
下一篇:
C++ FEIElementGeometryWrapper函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap