Пример #1
0
void dmr_apply_squelch_hook(OS_EVENT *event, char * mode){
  /* The *mode byte is 0x09 for an unmuted call and 0x08 for a muted
     call.
  */

  //printf("dmr_apply_squelch_hook for *mode=0x%02x.\n",*mode);

  //Promiscuous mode!
  if(*mode==0x08 && global_addl_config.promtg==1){
    printf("Applying monitor mode to a public call.\n");
    *mode=0x09;
    
    /* I'm not quite sure what this function does, but it must be
       called before dmr_apply_squelch() if the squelch mode is being
       changed. --Travis
     */
    dmr_before_squelch();
  }
  
  /* This is really OSMboxPost().  We should probably change up these
     names now that we're figuring out what the functions really
     do. --Travis
   */
  md380_OSMboxPost(event, mode);
}
Пример #2
0
void sms_send( sms_hdr_t *hdr, sms_bdy_t *body )
{
    sms_hdr_t *hp = (void*)0x2001e1d0 ;
    sms_bdy_t *bp = (void*)0x2001cefc ;

    memcpy(hp,hdr,sizeof(sms_hdr_t));
    memcpy(bp,body,sizeof(sms_bdy_t));

    msg_event = 3 ;
    md380_OSMboxPost(mbox_msg, &msg_event);
}
Пример #3
0
void dmr_apply_privsquelch_hook(OS_EVENT *event, char *mode){
  /* The *mode byte is 0x09 for an unmuted call and 0x08 for a muted
     call.
  */

  //printf("dmr_apply_squelch_hook for *mode=0x%02x.\n",*mode);

  //Promiscuous mode!
  if(*mode==0x08 && global_addl_config.promtg==1){
    printf("Applying monitor mode to a private call.\n");
    *mode=0x09;
    dmr_before_squelch();
  }
  md380_OSMboxPost(event, mode);
}
Пример #4
0
void mb_send_beep( int beep )
{
    beep_msg = beep ;
    md380_OSMboxPost(mbox_beep, &beep_msg);    
}